如何通过 shell 命令在 IOS-Simulator 中启动应用程序的目标

How to start an app's target in the IOS-Simulator from a shell command

问题: 如何从 shell 命令启动我的目标 MYAPP_NEWTARGET?像 :

这样虚构的东西
   open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --startapp=MYAPP --apptarget=MYAPP_NEWTARGET

设备在 Simulator.app 中启动后,您可以使用 simctl 执行此操作:

xcrun simctl install booted /path/to/your.app
xcrun simctl launch booted your.app.identifier