2016-01-13 65 views
0
  • 启动的应用程序在IOS-模拟器目标我的XCode 7.2
  • 我有一个应用程序中的XCode名为MYAPP编码。
  • 我从MYAPP命名MYAPP_NEWTARGET创建目标
  • 我知道HOWTO从shell启动IOS模拟器:如何从shell命令

    open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app 
    

问题: 我怎样才能从一开始我的目标MYAPP_NEWTARGET shell命令?东西fictitius这样的:

open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --startapp=MYAPP --apptarget=MYAPP_NEWTARGET 

回答

1

您可以使用simctl要做到这一点,一旦设备被引导在Simulator.app:

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

非常感谢。你知道我可以在文件系统中找到我的App /path/to/your.app吗? –

+0

我不知道你的文件系统在哪里。你正在创建它,所以你应该知道它在哪里。如果您使用的是Xcode,请查看您的'build'目录。 –

+0

感谢您的帮助。 –