Terminal command to build and install the iPhone app in simulator without launching from Xcode

眉间皱痕 提交于 2019-11-29 13:47:34

问题


Is there any terminal command that can be used to achieve this?

I know xcodebuild install -configuration can compile our xcodeproj from terminal without launching from Xcode, however the compilation files are under iOS but not in the iPhone simulator. I'm hoping one of you smart-folks can help me out.


回答1:


Hey, i found out that you can do it with:

xcodebuild -configuration Release -sdk iphonesimulator2.2

This makes a simulator build with version 2.2 ( you can use xcodebuild -showsdks to list what u have avail ). I'm stuck with a problem of trying to get it to launch on the phone. xcodebuild -install doesn't seem to do anything for me :S Any assistance?




回答2:


Please see the following github project (search for iphonesim)

This will allow you to launch the iphone simulator from the command line.

(Sorry, it won't seem to let me post a valid URL in this answer)



来源:https://stackoverflow.com/questions/434286/terminal-command-to-build-and-install-the-iphone-app-in-simulator-without-launch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!