I still have Snow Leopard. I have Xcode 4.2 for iOS development. This morning I upgraded my iPhone and iPad to iOS 5.1.
But Xcode 4.2 is not detecting my device for testing. I could not find the iOS 5.1 SDK image on Apple's developer site, for Xcode 4.2.
I don't want to do upgrade to Lion to get XCode 4.3 at this time.
Will I able to use Xcode 4.2 (on Snow Leopard) for iOS development now?
I'm working on this now. I have the same issue.
The MAJOR PROBLEMS here are that:
1) Apple never provided a warning dialog that this might disable people developing under Snow Leopard.
2) There is no easy way to undo this.
3) This should not happen on a point release update.
I've tried to install the previous ipsw from 5.0.1 for my Gen 4 IPod Touch from here: where to download ipod touch firmware restore links It will not install.
I've downloaded the Lion Xcode 4.3.1 from here (sign in as a developer first) Lion Xcode 4.3.1
And run some scripts from the Dev Forums here:
Unmounted the Lion DMG and restarted Xcode. This allowed me to test 5.1 in the simulator but broke every build to every device with a SIGABRT or link error.
I'm off to the Apple store to have them restore my device. If I get any more information, I'll let you all know. This has been a VERY EXPENSIVE and VERY UNPLEASANT surprise.
I have found how to solve it!
My system is Snow Leopard 10.6.8, and I have two sets of Xcode of 3.2.5 and 4.2, after I had upgraded my iPad 1 to iOS 5.1, I launched Xcode 3.2.5, it prompted me a window of 'unknown device was found', I answer 'Yes' to download lots of libraries from my iPad, several minutes later, I can debug and run my projects on my iPad!
Then I launched Xcode 4.2 and opened one of my previous projects, I can really debug and run it on my iPad!
In this way you can use either version of Xcode to develop apps on a Snow Leopard system.
if you want to also add iphone simulator 5.1 to your xcode then copy
entire directory to the following path =>
after you can also able to use iPhone simulator 5.1 to debug your application.
You must add the Symbols alias too..for example in
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.0 (10A403)
you must add Symbols alias that point to/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
so xcode 4.2 can detect your ios6 device (tested on mac mini 1.5 intel core solo with snow leopard). CheersTo get Xcode 4.2 on Snow Leopard to run code on a device running iOS 5.1 you can do this:
If you have another Mac running Lion and Xcode 4.3.1 you can copy the files from:
Place the copied files in the equivalent place on your Snow Leopard Mac: probably
Similarly copy the iOS 5.1 SDK files found in this directory:
Also copy 'version.plist' from the Lion machine in the iPhoneOS.platform folder to the Snow Leopard machine.
Re-start Xcode on the Snow Leopard machine and re-connect the devices and it seems happy enough.
If you don't have access to a machine with Lion and Xcode 4.3.1:
You can get the files out of the
4.3.1 DMG
which can be downloaded from Apple here: Downloads for Apple Developers.Mount the DMG, Show Package Contents on the Xcode icon and drill down to
Follow the steps above.
You might find it more convenient to use Apple's proprietary
ditto
method (sudo ditto src dest
) in the terminal window to copy the folders.Note,this hack will also work for latest iOS 6 SDK.
You can use apps compiled for 5.0 on your 5.1 or 5.1.1 device by compiling them and manually dragging .app file to iTunes. Tried today on 10.6.8 and XCode 4.2.