Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Install Older iOS Simulators in XCode 4.2.1 (SDK5.0)

I have just bought a new iMac. I then downloaded the latest SDK 5.0 and installed XCode 4.2.1. Everything is working fine. Though I realized that there are only iPhone and iPad Simulators 5.0 available for debugging. So I went on clicking the More Simulators... I click Install for all items and a while passed, and when I came back, it indicated as "Installed". But when I go back to my XCode, there are still just Simulators 5.0 in the list.

So, how do I go about installing the older simulators in XCode 4.2.1? Did I miss any steps? Or do I need to install older SDKs? Please help. Thanks.

like image 578
GeneCode Avatar asked Dec 16 '11 03:12

GeneCode


People also ask

How do I install additional simulators in Xcode?

If you require a different version of the iOS simulator than is provided by your Xcode installation, you can download additional simulators in Xcode. Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.

How do I download iOS simulator for Xcode?

To download a simulator In Xcode, choose Xcode > Preferences. In the Preferences window, click Downloads. In Components, find the legacy simulator version you want to add, and click the Install button.

Can we run iOS simulator without Xcode?

Well, that's not entirely true, you can actually still directly launch iOS Simulator without opening Xcode first by creating an alias. Note that modern versions of Xcode and OS X call the iOS Simulator simply “Simulator”, where you go will depend on which version of OS X the Mac is running.


2 Answers

X-Code 4.2 will have iOS 5 simulator and library only. If you want lower version simulator and library with X-Code just goto X-Code->Prefrences-> Downloads Tab. In downloads tab you'll have two tabs:

1) Components - Here you will have option to download iOS 4.3 simulator(~600 Mb), iOS 4.0-4.1(~670 MB) Device debugging support, iOS 3.0-3.2.2(686.3 MB) Device debugging support.

2) Documentation- Yoy will have option to download iOS 5.0,XCode 4.2 Developer libaray,Mac OSX 10.7 Core Library.

enter image description here

Install the components which ever you need and there you go..Have you installed components this way??

like image 102
rohan-patel Avatar answered Oct 08 '22 19:10

rohan-patel


If Xcode doesn't show the wanted simulators you'll be able to download older xcodes from here: https://developer.apple.com/downloads/index.action?name=Xcode

For example:

  • iOS 5 Simulator -> Xcode 4.3
  • iOS 5.1 Simulator -> Xcode 4.3.3
  • iOS 6 Simulator -> Xcode 4.6
  • iOS 6.1 Simulator -> Xcode 4.6.3
  • iOS 7 Simulator -> Xcode 5
  • iOS 7.1 Simulator -> Xcode 5.1

You can find the Xcode application inside the downloaded .dmg

  1. Open this DMG
  2. Right click on the Xcode application and click 'Show Package Contents'
  3. Navigate to: Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
  4. Copy the found simulator folder (eg. iPhoneSimulator7.1.sdk folder)
  5. Repeat steps 2 & 3 for your current Xcode application
  6. Paste the simulator folder

Restarting Xcode will show you the new added simulators

Happy building & testing!

Update:
Tested in xCode 6, working there as well

like image 31
Antoine Avatar answered Oct 08 '22 18:10

Antoine