title: What steps are necessary to automate a build of iPhone app?
body: <p>I have prior experience in build a automatic build process for .NET &amp; Delphi projects but now want to automate the building of a iPhone project... not only simply builds but also to the final deployment..</p>
  
  <p>I want a generic step list, with the command line actions that need to be performed, so anyone could adapt it to their particular build software.</p>
  
  <p>Also, how build with support for 3.0 and 2.0 targets (or more general: How build to different deployments targets???)</p>
  
  <p>So:</p>
  
  <p>Preparation:</p>
  
  <ul>
  <li>Set support for application versioning with <a href="http://www.blog.montgomerie.net/easy-iphone-application-versioning-with-agvtool" rel="nofollow noreferrer">agvtool</a>.</li>
  </ul>
  
  <p>Build steps:</p>
  
  <ul>
  <li>Checkout the sourcecode</li>
  <li>Clean the project</li>
  <li>Increase the version: <code>agvtool bump -all</code>
  
  <ul>
  <li>If is for deployment also run: <code>agvtool new-marketing-version &lt;new version here&gt;</code></li>
  </ul></li>
  <li>Build the project (how?)</li>
  <li>Build the test suite </li>
  <li>Run the test suite</li>
  </ul>
  
  <p>What more?</p>