iosxcodesdk

How can I add older version of iOS SDK in Xcode 4.5


I copied the iOS 5.1 SDK here:

Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

But, I still can't choose the base SDK in Xcode. Can anybody help?


Solution

  • You need to copy the iPhoneOS5.1.sdk to the directory

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
    

    and iPhoneSimulator5.1.sdk to

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
    

    (You'll need to restart Xcode to be able to select the SDKs in the Base SDK build option.)