如何通过 shell 命令在 IOS-Simulator 中启动应用程序的目标
How to start an app's target in the IOS-Simulator from a shell command
- 我有XCode7.2
- 我有一个在 XCode 中编码的名为 MYAPP 的应用程序。
- 我从我的 MYAPP 创建了一个名为 MYAPP_NEWTARGET
的目标
我知道如何从 shell 启动 IOS 模拟器:
open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
问题:
如何从 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
- 我有XCode7.2
- 我有一个在 XCode 中编码的名为 MYAPP 的应用程序。
- 我从我的 MYAPP 创建了一个名为 MYAPP_NEWTARGET 的目标
我知道如何从 shell 启动 IOS 模拟器:
open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
问题: 如何从 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