Once you upgrade to Snow Leopard, you’ll notice a few things have changed as far as how to create builds for versions of the iPhone/iPod prior to 3.0. The changes are minor, however, I think you’ll agree that things have been simplified.
Let’s start with how to get your system working with Snow Leopard:
Install Xcode/SDK for Snow Leopard
- Install Snow Leopard from DVD
- Install Xcode 3.2 from Snow Leopard DVD
- Download and install iPhone SDK 3.0 for Snow Leopard from Apple Developer Connection
Once installed, upon opening a project you may see something similar to the following (which I received when opening a recent project):
Notice the reference to “iPhone Device 2.2.1 (missing)”. This project was built for 2.2.1 before I upgrade Xcode. On a similar note, if you open the dialog to set the device and distribution settings, here is how things will look:
Again, the references to earlier SDK’s are no longer available.
Targetging 2.2 or Earlier Version of iPhone SDK
The trick to targeting earlier versions of the SDK is now done through the Deployment section in the Build preferences. In the image below you’ll see a reference to iPhone OS Deployment Target along with a list of available OS target options.
Choose the target you need, clean, rebuild, and with that, you should be good to go.