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:
Download and install XCode version 3.0 or later from Apple's developer web site.
Download our version of the template from the O'Reilly web site and extract the archive's contents.
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:
Launch XCode and select New Project from the File menu. A list of templates will be presented to you to choose from.
In the Application section of the list, scroll to the iPhone UIKit Application template ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access