How do I add the iPhone SDK 3 to the latest versio

2019-09-13 07:23发布

问题:

I just upgraded Xcode, but now I don't have any 3.x SDK for Simulator. How do I add it for testing purposes?

回答1:

You can try using old versions of XCode (with previous simulators) but the most reliable one is using a device. The iPhone1's latest OS version is 3.1.3. I'm sure you can pick one pretty cheap on eBay or similar.

You will also need to make sure that you drop the minimum OS version to 3.0.



回答2:

You can goto Project->Edit Project Settings, and from there edit the "Base SDK" to what ever version you have. From here when you build and run you should be running whatever sdk simulator or device you picked.



回答3:

http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html

This will show you how to install older version of xcode to run iphone simulatr pre-4.0.