ronny
ronny

Reputation:

iPhone 3.0 SDK, how to test on a 2.2.1 device?

I just installed the latest iPhone SDK 3.0. After I seleced the active SDK as Simulator 3.0 at the drop down overview, the "target" field no longer shows me the 2.2.1 SDK, and defaults to 3.0, resulting in I cannot test on my 2.2.1 device.

What actions should I follow to fix this? Even in the target property my base SDK still appears as device 2.2.1.

Upvotes: 1

Views: 1460

Answers (3)

David Maymudes
David Maymudes

Reputation: 5654

The setting you may want is the "iPhone OS Deployment Target" at the bottom of the Deployment section of the Info window for your project.

You can leave the "Base SDK" setting set to 3.0, and set the "Deployment Target" to an earlier version like 2.2.1.

search for "Target an earlier iPhone OS release" in

https://web.archive.org/web/20100901153956/https://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/120-Running_Applications/running_applications.html

Then it's up to you to make sure your application doesn't try to use OS 3.0 features on an OS 2.2 device. (use weak references to any OS 3.0-only frameworks, check OS version before doing things that only work on some versions, etc.)

Upvotes: 1

user70242
user70242

Reputation: 71

Right click on your project and select "Get Info". Then from the "Base SDK for All Configuration", select "iPhone Device 2.2.1" and the options will be available again.

  • Jetzdax

Upvotes: 0

Marc W
Marc W

Reputation: 19241

You cannot run an iPhone application compiled for 3.0 on a device running anything other than 3.0 as it is not backwards-compatible with 2.2.1. You'll need to upgrade your device in order to run 3.0 apps on it.

More specific to the most recent release of the SDK, there is an entry in the release notes that states that this version does not let you compile against any SDK except the 3.0 SDK. I believe the last version that allowed you to do that was 3.0b2. You'll need to roll back to that one or earlier if you want to compile using the 2.2.1 SDK.

Upvotes: 1

Related Questions