Use iOS 5 Simulator in XCode 5?

2019-04-18 12:06发布

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?

标签: ios5 xcode5
8条回答
趁早两清
2楼-- · 2019-04-18 12:52

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楼-- · 2019-04-18 12:54

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

查看更多
时光不老,我们不散
4楼-- · 2019-04-18 12:55

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

Screenshot for downloading simulator

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

Apple document for Xcode 5 Screenshot

Apple document for Xcode 5 link

查看更多
Summer. ? 凉城
5楼-- · 2019-04-18 12:55

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

查看更多
甜甜的少女心
6楼-- · 2019-04-18 12:57

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.

查看更多
劫难
7楼-- · 2019-04-18 13:02

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

查看更多
登录 后发表回答