10

I have 2 machines. On one of them I updated to xcode 4.5, but doing so uninstalled my iOS simulator for 5.1.

I'm hesitant to update my other machine as I have a project that requires the 5.1 simulator.

Are my assumptions correct or did I do something to remove the older simulator without knowing?

Jonas Stawski
  • 6,682
  • 6
  • 61
  • 106

2 Answers2

13

You can redownload the simulator in the Xcode preferences.

enter image description here

Ben Trengrove
  • 8,191
  • 3
  • 40
  • 58
  • 1
    Why would it uninstall the previous versions? It makes no sense at all! – Jonas Stawski Sep 19 '12 at 22:15
  • I just updated to Xcode 4.5 (4G182). I can't figure out why the iOS 6.0 Simulator isn't showing up! I only see 5.1, 5.0 and the Command Line Tools, as shown above in the image. – Todd Lehman Sep 20 '12 at 00:21
  • The iOS6 simulator is already installed by default so it doesn't come up for download. – Ben Trengrove Sep 20 '12 at 00:31
  • Does installing the iOS 5.1 simulator also install the 5.1 SDK? – Jonas Stawski Sep 20 '12 at 16:30
  • I just installed the iOS 5.1 simulator, and: nope. You have to get the iOS 5.1 SDK from - well, I have no idea, actually. Apparently not Apple, any more. Searching for "iOS 5.1 SDK" gives you the iOS 6 download. Evidently if you still support "old" versions of iOS, you weren't supposed to update to Xcode 4.5. Wish it told me that **before** I updated, I kind of figured that a single version back would still be supported. I mean, simulators for 5.0 and 4.3 are still available, but the only iOS SDK I have is 6.0. – Xenoveritas Sep 25 '12 at 21:37
  • I installed many simulators. And some of them appears to be useless to me. Installing the simulators is ok, but is there a way to uninstall some of them to spare room ? – HpTerm Sep 26 '12 at 22:12
  • 1
    You should always build with the latest SDK. You can still support iOS5 with the iOS6 SDK. – Ben Trengrove Sep 27 '12 at 00:22
  • It may be possible to download an old XCode and then link the SDKs : http://stackoverflow.com/questions/9613565/is-it-possible-to-get-the-ios-5-1-sdk-for-xcode-4-2-on-snow-leopard – weisjohn Sep 27 '12 at 18:58
  • 1
    As Ben said above -- you don't need to install the 5.1 SDK. If you set your base SDK to the latest, you can set your deployment target to any earlier version. **99% of the time base SDK should be set to Latest.** `BASESDK = latest. IPHONEOS_DEPLOYMENT_TARGET = earliest version you want to support installs on`. – memmons Nov 12 '12 at 22:08
6

Download Xcode 4.3.3 for lion and open the dmg, and click and show package contents,and copy the Contents\Developer\platforms\iPhoneOS.platform\sdks\iPhoneOs5.1sdk folders into your xcode4.5 Contents\Developer\platorms\iPhoneOS.platform\sdks folder, and it works

BBog
  • 3,630
  • 5
  • 33
  • 64
joe
  • 61
  • 1