How to Get Back the iOS 7 SDK After Upgrading to Xcode 6

Seven

iOS 8 finally launched on September 17, and with it, the public release of Xcode 6. However, after upgrading you will notice that you can no longer compile using the iOS 7.1 base SDK. This is a problem for any app that isn’t yet compatible with the iOS 8 SDK. To see what SDK’s you have installed, open the Terminal app on your Mac and enter:

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

If you only see the iOS8 SDK folder listed, you will need to extract the iOS7 SDK folder from a copy of Xcode 5.1.1. Or you can just download it here. Copy your unzipped iPhoneOS7.1.sdk folder into the folder shown above. Shut down and restart Xcode. You will then be able to select from both SDK’s when building or running.

Remember that you will also need to download the iOS 7.1 simulator by opening Xcode and going to Xcode > Preferences > Downloads.

About Martin Rybak

I am a New York area software developer and MBA with 10+ years of server-side experience on the Microsoft stack. I've also been a native iOS developer since before the days of ARC. I architect and develop full-stack web applications, iOS apps, database systems, and backend services.

10 responses to “How to Get Back the iOS 7 SDK After Upgrading to Xcode 6

  1. dimoss

    How about iOS 6 SDK? Is that still possible in Xcode 6?

  2. Thanks for the tip Martin!

  3. Thanks for including a direct download to the zip. You’re the man!

  4. Jay Faulkner

    Jesus christ, thank you for a sensible direct link! I’m at a conference trying to get something working on an older ipad and xcode’s stupid in-built components downloader is not playing games!

    • Julian

      +1 same for me, I wonder whether this is intentional by Apple to push really everyone to newer versions. That downloader is a pain in the ass.

  5. Joel

    Thanks, this saved me today when I realized that my newly released (patch) version didn’t work as expected due to that it had been compiled with iOS 8 SDK unintentionally.

  6. Thanks so much for the link to the iOS 7 SDK! Now, if anyone had a link to the iOS 7.1 simulator, I’d be beside myself! Seems iOS 8.1 is the oldest sim which Xcode 7.2 let’s you download :/

Leave a comment