Jun 29
With the 3.0 iPhone SDK a new project will by default have only two options listed under Active SDK: iPhone Device 3.0 and iPhone Simulator 3.0.
Fortunately Xcode has not forgotten how to create 2.x targeted projects, it’s just that those options seem to be hidden. Xcode usually has multiple ways to accomplish every task. Here’s one way to add the 2.x SDKs to your Xcode drop down:
- Select the project file and Get Info.
- On the General tab go down to “Base SDK for All Configurations:” and select your desired target SDK from the drop down.
- Close the window.
- The drop down should now include the new SDK you just selected as an option.
July 22nd, 2009 at 11:36
thanks, very useful for new developers starting with 3.0/3.1 wanting to get 2.x compatibility (like myself).
August 5th, 2009 at 17:43
but what happens when we use 3.0 lib like GameKit???
August 5th, 2009 at 19:27
@ltgbau: If your app cannot function without a specific 3.0 lib, then of course it has to be a 3.0 only project. If your app can make use of 3.0 features when it’s running on a 3.0 device, and is able to fallback gracefully when running on a 3.0 device, then you can mark the 3.0 lib as a “Weak” Role in Targets > [Name] > Link Binary With Libraries.
August 16th, 2009 at 22:25
Great answer, thanks for that. I think you should post it in the entry so everyone can read it without reading the comment :))