How do I add the iPhone SDK 3 to the latest version of Xcode?
I just upgraded Xcode, but now I don't have any 3.x SDK for Simulator. How do开发者_运维知识库 I add it for testing purposes?
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.
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.
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.
精彩评论