Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
I know it seems like we’ve spent a lot of time discussing non-Xcode stuff, but now that we’ve assured ourselves that the basic Ant script is working, we can start to actually wire up Xcode to the build. Making command-line builds work comes down to understanding a few basic commands that are included in the developer SDK. The star of the show is xcodebuild, which you can find in the /Developer/usr/bin directory. The basic format of the command is:
xcodebuild [-projectprojectname] [-targettargetname] ... [-configurationconfigurationname] [buildaction] ...
There is an alternate format that is used if you are dealing with workspaces:
xcodebuild [-workspaceworkspacename] [-schemeschemename] ... [-configurationconfigurationname] [buildaction] ...