Re-installing xCode takes 15GB Away

I have MacOS10.6.8 and I got gcc 6.4 from Homebrew, and I was trying to link it with xCode 3.2.6 which uses gcc 4.2. I thought I had messed up the original xCode files (in hindsight, I had another problem entirely.) I re-installed "xCode 3.2.6 with iOS" from Apple, but it took 15GB of extra space, leaving me with 7GB. The only thing I could think of is iOS support, but it didn't give me a chance to choose not to install it. uninstall-devtools reports xcodedir, unixdev, and systemsupport. Is systemsupport Platforms/? Can I delete this if I'm not using Mac and iPhone?

Black Intel MacBook, Mac OS X (10.6.7)

Posted on Feb 14, 2018 1:14 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 15, 2018 1:12 PM

--help says,


systemsupport:

/Library/Developer/Shared/uninstall-devtools

/Library/Developer/3.2/uninstall-devtools


which doesn't seem like it's going the right way. Deleting the folder causes Xcode to go crazy. Deleting specifically iOS, simulator, and the all the versions except the latest from the SDKs, seems to be fine; it has freed up all but 1GB of my previous version.

3 replies
Question marked as Top-ranking reply

Feb 15, 2018 1:12 PM in response to Dreaded Neil

--help says,


systemsupport:

/Library/Developer/Shared/uninstall-devtools

/Library/Developer/3.2/uninstall-devtools


which doesn't seem like it's going the right way. Deleting the folder causes Xcode to go crazy. Deleting specifically iOS, simulator, and the all the versions except the latest from the SDKs, seems to be fine; it has freed up all but 1GB of my previous version.

Feb 14, 2018 7:27 AM in response to Dreaded Neil

Understand that no version of Xcode includes a full gcc compiler suite. That gcc 4.2.1 is a compatibility library and includes for those that run gcc from the command-line that in reality simply instructs Apple's clang compiler to compile in gcc compatibility mode. If you had Xcode 9.2 (current), it still has this gcc v4.2.1 compatibliity mode.


It is probably a safe bet that no one is developing for the very early iPhones now.


That hour long compile of gcc 6.4 installed by home brew is entirely unrelated to Xcode, and places the full GNU compilation suite in a different location from Xcode 3.2.6. Without some path manipulation, you may get twisted in a knot trying to use one or the other compilation environment.


You can recover space from homebrew by removing older versions of dependencies, and applications. Type the following blue text in the Terminal:


$ brew cleanup

Feb 14, 2018 4:10 PM in response to VikingOSX

I have Snow Leopard with the latest Xcode 3.2.6; 9.2 requires a much more advanced system, but this is all working. I couldn't get brew gcc 7 to work, (I read a book while it was compiling,) but gcc 6.4 is functioning fine and is clean. I would like to add GCC6 to my compilers in Xcode, but that's not so important. My problem is, like you said, there's not any use of having multiple SDKs for very early iPhone, and I'm pretty sure that's what's causing the 15GB. I want to keep

xcode and unixdev,
but uninstall SDKs/ and Platforms/;
I think it has to be "uninstall-devtools systemsupport" because there's nothing else, but I'm having trouble Googling what this will actually do; systemsupport sounds important. Or should I just delete them?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Re-installing xCode takes 15GB Away

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.