iphonexcodecontinuous-integrationcruisecontrolxcodebuild

Continuous Integration for Xcode projects?


After using Hudson for continuous integration with a prior project, I want to set up a continuous integration server for the iPhone projects I'm working on now. After doing some research it looks like there aren't any CI engines designed specifically for Xcode, but one guy has had success using Cruise Control combined with the xcodebuild CLI tool. Has anyone here tried this? Are there any CI engines that work well with Xcode projects?

I'm probably going to give Cruise Control a try. I'll post an answer with my findings.


Solution

  • I'm successfully using Hudson on the mac with xcodebuild. With the release of the 3.0 iPhone sdk you have compete control over the target, configuration and sdk that the project is to be built against.

    It's as simple as creating a build step in hudson and telling xcodebuild to build the project:

    xcodebuild -target "myAppAppStore" -configuration "DistributionAppStore" -sdk iphoneos2.1
    

    The upfront work has paid off for me as my builds just work without any additional thought. I've written a detailed description on my blog if anyone is interested.

    iPhone app distribution made easy