Xcode 4.2 (Snow Leopard) and iOS 5.1 [duplicate]

天大地大妈咪最大 提交于 2019-11-29 20:38:31

You can't.

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

The last installable version of Xcode on Snow Leopard will be 4.2. Apple really wants developers to keep up to date on everything, whether MacOS or iOS.

Richard Groves

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

If you have another Mac running Lion + XCode 4.3.1 you can copy the files from:

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

to the equivalent place on your SL Mac: probably

/Developer/Platforms/iPhoneOS.platform/DeviceSupport

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

Re-start XCode on the SL machine and re-connect the devices and it seems happy enough.

[Edit: If you don't have access to a machine with Lion+4.3.1 you can get the files out of 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 Package Contents on the XCode icon and drill down to

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

find the files mentioned above.]

In steps:

  1. Stop XCode on SL machine
  2. Disconnect your iphone
  3. Mount the Xcode 4.3.1 image (.dmg that you can download from Apple dev site)
  4. Show package contentes of the Xcode 4.3.1
  5. copy XCode/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176) to <HD>/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  6. copy XCode/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/version.plist to <HD>/Developer/Platforms/iPhoneOS.platform/
  7. Start Xcode
  8. connect your iphone and it should work.

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

And do a manual restore on iTunes.

I did it today (March 8, 2012) on my iPad 2 and it works, Apple still seems to sign this iOS version.I guess not for a long time, so do it quickly.

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

YOu can try changing the version of your mac and faking it to install 4.3.1, but I cannot assure you its going to work...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!