How to build Xcode project from the command line?

北慕城南 提交于 2019-12-03 07:04:59

After having a working configuration in Xcode, open a shell and navigate to the directory, where your <NAME>.xcodeproj resides.

After running:

xcodebuild -list -project <NAME>.xcodeproj/

you see a list of Schemes.

Copy the desired scheme name and run:

xcodebuild -scheme <SCHEME NAME> build

You can install ios-deploy i.e. via:

npm install -g ios-deploy

Copy the app path from the end of the xcodebuild output and run:

ios-deploy --debug --bundle <APP PATH>

Now the app should be launched on i.e. a connected device.

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