在Android中,我可以运行它来启动模拟器
emulator @NAME
等待它完全加载并准备使用
adb wait-for-device
Mac上的iOS模拟器是否具有等效功能?我使用默认的Xcode Simulator。所以开始模拟器
xcrun simctl boot deviceID
并等待其完全加载(只是我在想的一个例子)
xcrun simctl wait deviceId
答案 0 :(得分:0)
我确实找到了一个对我有用的答案。我正在使用brew upgrade
,并在输出中寻找这些值:
ruby setup.rb
答案 1 :(得分:0)
有一个xcrun simctl bootstatus deviceID
的未完全记录的simctl命令
它没有出现在xcrun simctl help
的常规输出中,但是确实有xcrun simctl help bootstatus
从我自己使用它开始,如果您调用它,则在bootstatus命令退出时,您的模拟器应该可以完全运行。但是由于没有确切记录,您的里程可能会有所不同。
xcrun simctl help bootstatus
Checks device boot status.
Usage: simctl bootstatus <device> [-bc]
-b Boot the device if it isn't already booted.
-c Continuously monitor boot status through multiple boot/shutdown cycles.
Monitors the specified device and prints boot status information until the device finishes booting. You can safely call this before you attempt to start booting the device.
/usr/bin/xcrun simctl bootstatus 88668721-0DF0-4167-8F3E-37190E8099C1
Monitoring boot status for AutomationDevice - iPad Air 2 - iOS 11.4 (88668721-0DF0-4167-8F3E-37190E8099C1).
[2019-05-23 03:50:56 +0000] Status=2, isTerminal=NO, Elapsed=00:00.
Waiting on Data Migration
Reason:(null)
Migration Elapsed:00:00 seconds
[2019-05-23 03:50:56 +0000] Status=2, isTerminal=NO, Elapsed=00:01.
Waiting on Data Migration
Reason:Running plugin com.apple.MobileContainerManager.ContainerMigrator (ContainerMigrator.migrator, user-agnostic)
Migration Elapsed:00:00 seconds
[spaaaaaaam...]
[2019-05-23 03:51:06 +0000] Status=2, isTerminal=NO, Elapsed=00:11.
Waiting on Data Migration
Reason:Running plugin com.apple.iTunesStore.migrator (iTunesStore.migrator)
Migration Elapsed:00:10 seconds
[2019-05-23 03:51:08 +0000] Status=1, isTerminal=NO, Elapsed=00:12.
Waiting on BackBoard
[2019-05-23 03:51:12 +0000] Status=4, isTerminal=NO, Elapsed=00:16.
Waiting on System App
[2019-05-23 03:51:12 +0000] Status=4294967295, isTerminal=YES, Elapsed=00:17.
Finished