19

My company still supports iOS 6 apps, but after installing the new Xcode(6) I only see iOS 7 & 8 simulators. Is there a way I can install iOS 6 simulator for Xcode 6?

Jordan Hochstetler
  • 1,308
  • 3
  • 17
  • 28
  • You may to check out this closely related thread: http://stackoverflow.com/questions/22479215/install-ios-5-simulator-to-xcode-5-1/30239188#30239188 – BuvinJ May 14 '15 at 14:01

3 Answers3

20

iOS 6 is unavailable in Xcode 6. You will have to use Xcode 5 and run the simulator in Xcode 5. You are able to download older versions of Xcode at Apple's Developer Website. Click the looking for an older version of Xcode? link.

enter image description here

([Xcode] -> [Open Developer Tools] -> [iOS Simulator]).

enter image description here

mikemaccana
  • 110,530
  • 99
  • 389
  • 494
ChriskOlson
  • 513
  • 1
  • 3
  • 12
  • This is what I've been doing in the mean time. I'd like to work out of just only Xcode 6. It's not a huge inconvenience, but it seems simple enough to do. Thanks for the screenshot/steps. – Jordan Hochstetler Sep 19 '14 at 14:59
  • Jordan, if you like this answer at all, if you would, please accept the answer. It helps me out a lot! – ChriskOlson Sep 19 '14 at 18:19
  • 1
    Note, XCode 5 isn't even compatible with OS X El Capitan – shim Oct 07 '15 at 04:15
6

You can install Xcode 5.1 side by side with Xcode 6 and run the iOS 6 simulator in Xcode 5.1 (install Xcode 5.1 in a suitably named subdirectory of Applications) - on Mavericks (not Yosemite).

You can also copy apps compiled by Xcode 6 into the Xcode 5 iOS 6 emulator and test them there.

There are two points to note - the directory path of an app in Xcode 6 is not easily predetermined - ensure the emulator app compiled by Xcode 6 is i386 and not 64 bit

To get around the former - get your app to announce it's location:

NSLog(@"%@", [[NSBundle mainBundle] bundlePath]);

If you ask Xcode 6 to build for iPhone 4s/7.1 emulator you will get an i386 executable which you can move to the iOS 6 emulator.

MichaelR
  • 1,681
  • 15
  • 28
  • I was not able to run the iOS 6 simulator properly on OSX 10.10.1. The following error is raised : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge. – Rafouille Dec 04 '14 at 13:43
  • Unfortunately iOS Simulator runtimes older than iOS 7.1 will not work on OS X Yosemite. See http://stackoverflow.com/questions/26637260/ios-6-1-simulator-on-osx-10-10-yosemite – MichaelR Dec 06 '14 at 22:52
4

What you can do is the following...

  1. Download the older version of Xcode that came with an older SDK.
  2. Install the SDK required.
  3. At this point, the SDK will install into /Developer/.... location. Copy the installed SDK into /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

This worked for me as I was able to go all the way till SDK 5.1.

However, once you start using Xcode 6, the storyboard would have been upgraded. I cannot guarantee backward compatibility of Storyboard.

Abhilash Gopal
  • 429
  • 5
  • 8