Removing iOS SDKs from OSX

12,730

Solution 1

Can I remove old ones?

Sure.

Where are they stored?

/Developer/Platforms/iPhone*/Developer/SDKs/ usually.

Does the newest SDK overwrite base classes from previous SDKs? (Does NSString.h now reside in two different SDKs or will the newest one take precedence?

No, you're fine to delete them. Each SDK is self contained.

What about beta 1, beta 2, beta 3 SDK versions? Does installing the GM/official eliminate the beta version from my Mac?

Sometimes, you can choose to reinstall them though

Most importantly, Can I still target 3.0 if I install the 4.2 SDK? (I understand the difference between base SDK and target SDK)

Yes

Solution 2

As of May 2016:

Where are they stored?

  • /Library/Developer/CoreSimulator/Profiles/Runtimes
  • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
  • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/Runtimes

Solution 3

You can choose to install Xcode in a different directory rather than have it overwrite your current version. See Can I have multiple Xcode versions installed? for details. Each installation stands on its own. Just be sure you know which one you're launching when opening your project.

Share:
12,730
Daddy
Author by

Daddy

i like programming!

Updated on July 24, 2022

Comments

  • Daddy
    Daddy almost 2 years

    This isn't a programming question but it's about the SDKs and the IDE. I've accumulated a ton of different XCode installs over the past couple of years and now my hard drive is nearly full. With each SDK clocking in at around 5 gigs, and my storage space getting low, I have a couple of questions

    3 Questions:

    1. Can I remove old ones?
    2. Where are they stored?
    3. Does the newest SDK overwrite base classes from previous SDKs? (Does NSString.h now reside in two different SDKs or will the newest one take precedence?
    4. What about beta 1, beta 2, beta 3 SDK versions? Does installing the GM/official eliminate the beta version from my Mac?
    5. Most importantly, Can I still target 3.0 if I install the 4.2 SDK? (I understand the difference between base SDK and target SDK)

    I want to clean my hard drive and I have about 18 GB remaining on a 160 GB drive. I'd like to just start over and reinstall OSX, download a fresh SDK, but I still have apps that are targeted to 3.1.2 and I don't want to be forced to only support 4.0.

    Thank you

  • Daddy
    Daddy over 13 years
    Thank you. What about XCode versions, do new versions overwrite old versions?
  • cobbal
    cobbal over 13 years
    @JustinXXVII Usually yes, unless you're talking about the Xcode 4 beta which gets it's own directory by default /Xcode4/
  • Daddy
    Daddy about 13 years
    What I've done now is install all beta sdks in /DeveloperBeta, and I create a shortcut to the XCode.app bundle in that directory. That way I can now keep the beta XCode and SDKs separate in case they break my applications.