What steps are required to automate the build of an iPhone application?

I have experience in creating an automated build process for .NET and Delphi projects, but now you want to automate the creation of an iPhone project ... not only just build, but also permanently deploy.

I need a generic list of steps, with actions performed on the command line, so that everyone can adapt it to their specific software.

Also how to build with support for whole 3.0 and 2.0 targets (or more general: how to build for different deployment targets ???)

So:

Preparation:

  • Install support for version control using agvtool .

Build actions:

  • Checkout source code
  • Clear project
  • Increase the version: agvtool bump -all

    • If the deployment also runs: agvtool new-marketing-version <new version here>

  • Create a project (how?)
  • Building a test suite
  • Run the test suite

What else?

+2


source to share


1 answer


Building a goal is the easiest part. Use xcodebuild . It can target individual SDKs easily. It is also a tool that will create your test suites for you (using a separate target altogether). I recommend relying on xcodebuild as much as possible. I've only seen it suffer from trying to wrap xcodebuild calls with make, jam, or ant. You have to build with xcodebuild after all, so it's worth studying the Xcode Build System Guide and learning how to make the most of it. It's pretty powerful. I have some tips for setting it up here .



Running a test suite is harder to automate for iPhone (especially if you need to test a device). There were other discussions . For many applications, you may not be able to fully automate this step.

+4


source







All Articles