Building on the Command Line

It turns out you don’t have to be running Xcode to build an Xcode project. The command-line tools installed with Xcode include xcodebuild, which lets you perform build actions on the command line or as part of a shell script.

This style of build is particularly important when you’re doing continuous integration, in which your codebase is being automatically built on a regular basis. One common technique for this is to set up Jenkins,[9] which can scan for commits to a source control system like Git (to be introduced later, in Chapter 10, Source Control Management), check out the project, build it, and then package it for distribution or send emails if the build failed. For this to work, the CI script has to have ...

Get Xcode Treasures now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.