Integrating with XCode

While most developers use the command line or a makefile to build iPhone applications, the tool chain can be partially integrated with XCode to take advantage of the feature-rich editor and one-click build process. XCode treats the tool chain as an external resource and calls it to perform the actual build.

To integrate with XCode, a template is required to glue the necessary pieces to the tool chain. John Robinson from Monster and Friends has designed an XCode template based on one written by tool chain developer Lucas Newman. We've made some changes to tailor it to this book. Our version can be found in the download section for this book at http://www.oreilly.com/catalog/9780596518554/. John's original version can be found at http://www.monsterandfriends.com/?q=node/62.

To integrate the cool chain with XCode, perform the following steps:

  1. Download and install XCode version 3.0 or later from Apple's developer web site.

  2. Download our version of the template from the O'Reilly web site and extract the archive's contents.

  3. A folder named iPhone UIKit Application will be created. Copy this directory into /Developer/Library/Xcode/Project Templates/Application on your Mac.

Once you've installed the template, you can now create a new iPhone project by performing these steps:

  1. Launch XCode and select New Project from the File menu. A list of templates will be presented to you to choose from.

  2. In the Application section of the list, scroll to the iPhone UIKit Application template ...

Get iPhone Open Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.