Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

3. Automating iOS Builds > Testing xcodebuild

Testing xcodebuild

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 [-project projectname] [-target targetname] ...
[-configuration configurationname] [buildaction] ...

There is an alternate format that is used if you are dealing with workspaces:

xcodebuild [-workspace workspacename] [-scheme schemename] ...
[-configuration configurationname] [buildaction] ...

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial