iOS Install SDK [closed]
I have a little problem with the new Xcode build for Mac OS X Lion. Here's the situation:
- I run Lion on a separate partition. Upgraded Xcode to the most recent, iOS 5 compatible version which removed my iOS 4 SDK fr开发者_如何学JAVAom Lion. I didn't ask it to do that, but well, it did.
- I still have the iOS 4 SDK on my MacBook's built in HD, but dragging it into the appropriate folder in Lion does not make Xcode recognize it.
I need this to run on Mac OS X Lion, but it's not letting me add the iOS 4 SDK again, as I need both iOS 4 and iOS 5 to test on, but am stuck on iOS 5 only.
Has anyone accomplished this yet? Talking nicely to Xcode doesn't seem to help it detect the SDK :( :P
Thank you!
You should have installed the latest xcode which included the iOS5 SDK into a seperate directory.
Now you should download the previous version of xcode, the latest one other than the one with iOS5. This will be the one on the Mac App Store, and on the iOS developer site, under the not-beta tab. Then in the installer choose a different directory, for example "developer-old". This is done on the screen which lists the components that the installer will install. In the middle column there will be a folder icon followed by the word "Developer", click on that, it will produce a dropdown where you can select another directory.
I'm pretty confident this will work, however I installed the Xcode with the iOS5 SDK into a directory named "developer-new", preventing it from overwriting the previous xcode and SDKs.
This also means that you'll have 2 Xcode application, one will only have iOS4, and the other will only have iOS5. You will need to choose which Xcode you use depending on which iOS you are developing for. There will also be 2 iOS simulators.
精彩评论