Xcode 4.2 (Snow Leopard) and iOS 5.1

Possible duplicate:
ios 5.1 with xcode 4.2 for iOS development

I upgraded my iPhone to iOS 5.1. My operating system is Snow Leopard.
Now I need SDK 5.1 for development with xcode 4.2.

Where can i download it? Any suggestion?

Solution: Switch to ios5.0 or upgrade to Lion

+21
objective-c iphone ios5
Mar 08 2018-12-12T00:
source share
4 answers

You can not.

You need to upgrade Mac OS 10.7 Lion to get the latest version of Xcode with the 5.1 SDK.

The latest installable version of Xcode on Snow Leopard will be 4.2. Apple really wants developers to keep an eye on everything, whether it’s MacOS or iOS.

+26
Mar 08 '12 at 8:50
source share

To get Xcode 4.2 on Snow Leopard to run code on a device with 5.1, you can do this:

If you have another Mac running Lion + Xcode 4.3.1, you can copy files from:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176) 

to an equivalent location on your SL Mac: maybe

 /Developer/Platforms/iPhoneOS.platform/DeviceSupport 

and also copy version.plist from the Lion machine to the iPhoneOS.platform folder on the SL machine.

Restart Xcode on the SL machine and reconnect the devices, and that seems happy enough.

[Edit: if you do not have access to the machine with Lion + 4.3.1, you can get files from the 4.3.1 DMG, which can be downloaded from Apple here: http://adcdownload.apple.com/Developer_Tools/xcode_4.3.1_for_lion /xcode_4.3.1_for_lion.dmg

then mount the DMG, show the contents of the package on the Xcode icon and expand to

 /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport to 

find the files mentioned above.]

In steps:

  • Stop Xcode on SL machine
  • Disconnect your iphone
  • Install the Xcode 4.3.1 image (.dmg, which can be downloaded from the Apple dev site)
  • Show Xcode 4.3.1 Package Contents
  • copy of XCode/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176) to <HD>/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  • copy XCode/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/version.plist to <HD>/Developer/Platforms/iPhoneOS.platform/
  • Run xcode
  • plug in your iphone and it should work.
+55
Mar 08 2018-12-12T00:
source share

If you want to stay on Snow Leopard, download the iOS 5.0.1 firmware of your device from this link: http://www.iphonefirmware.com/firmwares-download .

And do a manual recovery in iTunes.

I did it today (March 8, 2012) on my iPad 2 and it works, Apple still seems to be signing this version of iOS. I think not for long, so do it quickly.

+1
Mar 08 2018-12-12T00:
source share

iOS 5.1 is only available in xCode 4.3.1, and its only one available in Lion, sorry.

You can try changing the version of your mac and faking it for installing 4.3.1, but I can’t assure you that you are going to work ...

0
Mar 08 2018-12-12T00:
source share



All Articles