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

前端 未结 8 1198
一整个雨季
一整个雨季 2020-12-02 05:05

I copied the iOS 5.1 SDK here:

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

But, I stil

相关标签:
8条回答
  • 2020-12-02 05:43

    None of the above worked on my 10.8 xcode 4.5.1. Most of the paths given above are not found.

    Here is my solution note.

    1. Download xcode_4.4.1_6938145.dmg in https://developer.apple.com/downloads/
    2. Load up the dmg file then go to Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ you will find iPhoneOS5.1.sdk (this is what i want in this case).
    3. Copy iPhoneOS5.1.sdk folder into your Xcode folder /Applications/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
    4. Restart Xcode
    5. Open Xcode project setting->build settings->base SDK, then you will see iOS 5.1 option.
    0 讨论(0)
  • 2020-12-02 05:47

    Akhildas' solution worked for me. I was able to build against the 5.1 SDK with XCode 4.5.1. One caveat:

    If you drop an SDK from a version of XCode downloaded by a different Apple ID, the App Store will show that you have an update to 4.5.1 (even though you already have it). When you press the update button, it tells you to log in with the other Apple ID.

    Strange, I wonder where the account information is buried in the 5.1 SDK?

    Also, when I set a base SDK back to iOS 6, it appears you have to restart XCode to recognize that framework.

    0 讨论(0)
  • 2020-12-02 05:51

    The BEST SOLUTION is to go to the XCode Preferences and to install older versions of iOS simulator / SDK from there, as explained here : https://apple.stackexchange.com/questions/47323/installing-xcode-with-ios-4-3-device-simulator

    Hope this helps :)

    0 讨论(0)
  • 2020-12-02 05:58

    Old SDK's for the OS and Simulator might be available from these locations using finder.

    For OS

    /Developer-old/Platforms/iPhoneOS.platform/Developer/SDKs

    For Simulator

    /Developer-old/Platforms/iPhoneSimulator.platform/Developer/SDKs

    Developer-old, you would find it in device volume path.

    0 讨论(0)
  • 2020-12-02 05:59

    xcode.app > Right Click > Show Package Contents

    It will open xcode package contents.

    Go to the directory path -

    Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

    Now you can see the folder name with ios sdk version. For example : iPhoneOS(sdk-version).sdk

    0 讨论(0)
  • 2020-12-02 06:03

    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.)

    0 讨论(0)
提交回复
热议问题