Use iOS 5 Simulator in XCode 5?

若如初见. 提交于 2019-12-06 16:49:11

问题


It seems that XCode 5 only comes with the iOS 6 and 7 simulators. Is there a way to use the iOS 5 simulator with XCode 5?


回答1:


If you're using Xcode 5 under OS X v10.8 then if you go to Preferences -> Downloads you should see the 5.0 and 5.1 simulators available under 'Components'. You can download and install directly from there.

If you're using Xcode 5 under OS X v10.9 then the iOS 5 simulator is no longer available.

In terms of lessons to learn, Apple did exactly the same thing with iOS 4 and the transition from OS X v10.7 to v10.8. So it's not unreasonable to expect that from now on Apple is going to supply simulators only for the version of iOS that was current when that OS X came out and the one before it.




回答2:


Since Mavericks and Xcode 5.1, iOS5 Simulator is now gone :(

Seems Apple want us to focus on iOS7 and iOS6. (iOS5 now holds only < 1 to 5 % total on active AppStore devices)




回答3:


While there is no 5.1 simulator under Mavericks, you still can connect up an old iPad1 to do your testing.




回答4:


Additional Simulators can be installed from Xcode -> Preference -> Downloads -> Components

However, in case of Xcode 5.x iOS 5 simulator cannot be installed since Mavericks doesn’t allows it.

Apple document for Xcode 5 link




回答5:


This doesn't technically answer your question, but that's how I do it in practice:

You can have Xcode 4 and 5 installed simultaneously on the system. Xcode4 does have support for iOS 5. You just need to download Xcode4 from the downloads page and rename the app before installing to the system (so that you don't copy it over Xcode 5).

Edit: this solution is not working anymore. Used to work but currently crashes for me.




回答6:


If you still have the old version of XCode you can try giving a symbolic link as explained in this post : https://stackoverflow.com/a/18957939/2415693




回答7:


I was able to run iOS 5.0 simulator using Xcode 5 on Lion. But after upgrade to Maverick it didn't work the same way it did on Lion. May be there is a way, but not the same as before...




回答8:


I'm running Mavericks, but I have Mountain Lion as a virtual partition under Parallels Desktop. Under Xcode 5.0.2 downloads the iOS 5.0 and 5.1 simulators are showing up, and I've downloaded them, but sadly I can't seem to select them when running an app.

The 5.1 simulator as such runs fine if I select in manually, it's just that I can't seem to deploy apps on it from Xcode, even though I'm setting my deployment target to 5.1.1.

To satisfy my curiosity I've also got Mountain Lion running from an external hard disk (without the virtual machine) and I get the same results: no deploying apps from Xcode 5 to iOS 5.1.1



来源:https://stackoverflow.com/questions/19281739/use-ios-5-simulator-in-xcode-5

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!