12

I would like to find a way to compile and package our iPhone application as part of our automated nightly build. At present we always have to manually kick off a build on a shared Mac that has the adhoc certificates installed on the box and then post the resulting test binaries some place where testers can pull them down and install them.

Has anyone found an approach to automation that works for them?

ra9r
  • 4,528
  • 4
  • 42
  • 52
  • Another solution (maybe a bit more detailed): http://stackoverflow.com/questions/2664885/xcode-build-and-archive-from-command-line Have a look at my answer there. It especially deals with integrating the CLI build into a CI for OTA distribution. – FuePi Jun 11 '12 at 14:13

3 Answers3

11

There's a command line tool to build Xcode projects: xcodebuild

Nikolai Ruhe
  • 81,520
  • 17
  • 180
  • 200
3

Try using xcodebuild, it'll build an Xcode project from the command line. You can then pull the binaries out of the build directory.

chimz
  • 31
  • 2
3

I wrote an XCodeBuilder (it calls xcodebuild) for CruiseControl that is now part of the standard release. We used this on an app that is now in the app store and it was great. After every commit a version of the app w/the ad-hoc signature was ready for download and testing by the rest of the team.

Jeffrey Fredrick
  • 4,493
  • 1
  • 25
  • 21