xcode 13安装好后使用命令打开模拟器
xcrun instruments -w "iPhone 8 (14.3)"
xcrun: error: Failed to locate 'instruments'.
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
几番查找发现这个命令已经过期了。
How to launch iOS simulator from Terminal
Run this command to see a list of available simulators and their UDID, then copy UDID of the device and run the next command.
$ xcrun simctl list
$ open -a Simulator --args -CurrentDeviceUDID <your device UDID>
The output example is:
iPhone 8 (F3991045-28ED-4703-B624-77449D5D1AE7) (Shutdown)
where the numbers are the UDID.
最终使用以下命令打开iphone 8。
open -a Simulator --args -CurrentDeviceUDID F3991045-28ED-4703-B624-77449D5D1AE7
网友评论