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.
Richard Groves Mar 08 2018-12-12T00: 00Z
source share