Oct 8, 2008

(XCode) How to compile a XCode project using command line

XCode has a very useful toll which named xcodebuild, it allows to compile a XCode project by command line, here is an example:

xcodebuild PRODUCT_NAME="AppName"

the PRODUCT_NAME argument is defined in the info.plist of your project which means the application's name, it is also the name showen in your iPhone or simulator.

The xcodebuild command is executed only in the project directory, so you should use it in the right place.

No comments: