7

According to apple,

Xcode in the Mac App Store has been repackaged, and is now distributed as a stand-alone application.

Can I safely remove old versions of Xcode which are using a lot of space? They didn't get removed when I installed the latest version. If I can, what should I do? Which files should I remove or what program do I need to run to remove them?

Thanks!

8

Can I safely remove old versions of Xcode which are using a lot of space?

Yes.

If I can, what should I do?

Run:

sudo <Xcode>/Library/uninstall-devtools --mode=all

Where <Xcode> is usually /Developer but can sometimes be ~/Developer depending on whether you installed it with sudo privileges or not.

Once you've run that script you can just move /Developer or ~/Developer to the trash, you don't need it any more.

You can can get more details about uninstalling by reading the About Xcode.pdf document in your directory.

If you also have a /Developer-old directory you can just move that to the trash.

  • Would this leave gcc and other things necessary for compiling ruby and stuff like that? – Ian Apr 13 '12 at 21:08
  • 2
    You need to run the new Xcode 4.2.3 and then open the Preferences pane. Click on the 'Downloads' tab and select Command Line Tools from the list. Click the 'Install' button to install them. You'll get gcc and whatnot back. – Ian C. Apr 13 '12 at 21:33
  • 2
    No problem. Ian's have to stick together. :) – Ian C. Apr 14 '12 at 17:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .