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.