gpt4 book ai didi

xcode - iOS 模拟器启动,但不出现,带有 "xcrun simctl boot ${UUID}"

转载 作者:行者123 更新时间:2023-12-02 20:03:37 25 4
gpt4 key购买 nike

我运行这个脚本

#!/usr/bin/env bash

device1="B13D4F22-AA4E-4890-8C2B-3C5B7B6E3678"
device2="5E2588E9-38B5-48AF-99C5-DEE8A1E6FDA0"
device3="2C28BD02-18BE-4FC5-94DE-075880E70E60"
device4="723705CD-B038-44E0-B42E-F1D29A28E85E"

xcrun simctl boot ${device1}
xcrun simctl boot ${device2}
xcrun simctl boot ${device3}
xcrun simctl boot ${device4}

输出是

An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164): Unable to boot device in current state: Booted An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164): Unable to boot device in current state: Booted An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164): Unable to boot device in current state: Booted An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164): Unable to boot device in current state: Booted

但是,dock 中没有“Xcode”图标,而且我在 mac 上也看不到 sims。它们如何被引导?他们为什么不出现?

最佳答案

xcrun simctl boot $udid 只启动模拟器后台服务,

exec open Simulator.app 启动前台 GUI。

关于xcode - iOS 模拟器启动,但不出现,带有 "xcrun simctl boot ${UUID}",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55229759/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com