Targeting iPhone 2.x on Snow Leopard with Xcode 3.2

June 12, 2009
Tags: ,

A few of my fellow WWDC 2009 attendees and I drank a little too much of the Apple Kool-Aid and installed Snow Leopard and Xcode 3.2 over our existing Leopard installations.  Unfortunately, iPhone 2.x SDKs were no longer available.

sdk30_drop_down

This is a bit of a bummer if you’d like to continue targeting 2.x devices.  Luckily, the solution turns out to be quite simple.  It also happens to be part of what you’ll need to do to continue targeting 2.x devices while providing advanced features on iPhone OS 3.0 devices.  I’ll leave that discussion for a future post.

To target a 2.x device using Snow Leopard and Xcode 3.2 you have to change your project’s “iPhone OS Deployment Target.”

deploymenttarget

That’s it, you’re done.

Quick note: if you compile and run into issues during device install (e.g., something about not being able to validate), make sure you have no underscores in your app’s name.

5 Responses to “Targeting iPhone 2.x on Snow Leopard with Xcode 3.2”

  1. You couldn’t wait could you? :) Thanks for posting this tip.

  2. [...] Serban Porumbescu, whom I met last week at WWDC, posted instructions for targeting iPhone OS 2.x from XCode 3.2. [...]

  3. süper de?il öküzün önde hideni

  4. Very useful piece of information. I just released an app and could only get support for iPhone OS 2.2.1 and above on Xcode 3.1.3. With this i just added backwards compatibility.
    Thanks

  5. [...] When you install the 3.0 SDK and create a new project, it will be automatically set up to build only for 3.0. To target earlier versions while still having access to 3.0 features, you need to take a few extra step. These steps are described in detail in the readme of the MailComposer sample (iPhone dev account required). My friend Serban also wrote about how to do it when you add Snow Leopard to the mix. [...]

Leave a Reply