How to Install iOS 7 and Onwards Simulators in Xcode 7 Beta 5

How to install iOS 7 and onwards simulators in Xcode 7 Beta 5?

Older Simulator runtimes are available for download through Xcode's preferences.

Goto Xcode -> Preferences -> Downloads to see the list of compatible legacy simulator runtimes.

El Capitan supports iOS 8.1 and newer runtimes.

Yosemite supports iOS 7.1 and newer runtimes.

There is a known issue mentioned in the Xcode release notes which prevents the iOS 7.1 simulator runtime from working in Xcode 7.

Thus, you can't currently use the iOS 7.1 simulator runtime with Xcode 7.

iOS7 Simulator in XCode7 live version?


How can I run my app on iOS7 simulator?

To make a long story short, you can't. You can't use the iOS 7 simulator with Xcode 7. You can use the iOS 7 simulator with Xcode 6, but you can't build your app there. This is in keeping with Apple's stated policy of helping you be backward compatible only one major version backward.

The only solution, therefore is either to give up your goal of backward compatibility to iOS 7 or to test on an iOS 7 device.

XCode 7. iOS simulators missing and not installable

One possible issue is that there may be old leftover simulators installed, which are not compatible with the new XCode, and their presence causes the whole Simulator to fail. To get rid of them, delete the simulators in /Library/Developer/CoreSimulator/Profiles/Runtimes (for me there was an iOS 7 simulator there which was the issue). Relaunch XCode after this.

Then try to run the simulator from XCode->Open Developer Tool->Simulator. Assuming this succeeds, verify that you have the simulators under the iOS Simulator menu Hardware->Device->Manage Devices… – if not, you should be able to click the + in the bottom bar to add yourself some iOS 9 simulators. Relaunch XCode again and they should show up in the menu.

XCode 7 (Beta 3 & 4) Could not download and install iOS 8.* simulator

I found another workaround on the Apple forums for this issue that does not require downloading/having other versions of Xcode. If you run Xcode using sudo the simulator downloads and installs work just fine:

sudo /Applications/Xcode.app/Contents/MacOS/Xcode

Note: Once the downloads and installs are complete you should quit Xcode and start it normally.

Update: XCool points out an important safety tip in the comments that I wanted to highlight here:

Make sure that you close any projects before opening Xcode using sudo, otherwise there'll be a lot of permission issues with any files that are currently open when the installation occurs.

How to install iOS 7.0 and iOS 8.0 Simulators in Xcode 6.1?

Only iOS 7.0 and later simulators are supported on Xcode 6.0.x and 6.1.x. Only iOS 7.1 and later simulators are supported on Xcode 6.2 and greater.

The older simulators runtimes are not compatible with the new CoreSimulator architecture. You need to install Xcode 5.1.x if you want to run iOS 6.x simulators.

The iOS 7.0 simulator does not work on OSX Yosemite, so you need to be on OS X Mavericks if you want to run the iOS 7.0 simulator.

The iOS 8.0 simulator is not available as DLC. It is only supported in Xcode 6.0. If you really want to use it with newer versions of Xcode, you can try copying the iPhoenSimulator8.0.sdk and iOS 8.0.simruntime from Xcode 6.0 into Xcode 6.1, but as stated, this is not supported.

See:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS 8.0.simruntime

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk

How to install iOS simulators from command line

It can be done with xcode-install, with the following commands

gem install xcode-install
xcversion simulators --install='iOS 9.3'


Related Topics



Leave a reply



Submit