Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you uninstall old custom installs of Xcode?

When I install a beta, I do a custom install into a separate folder to the latest release version. I have several old beta installs.

How do I uninstall the old custom versions of Xcode?

Can I just trash the folder?
Our do I need to use Terminal?

The release notes suggest to use this:

$ sudo /Library/uninstall-devtools --mode=all

But will this just uninstall my original official release version 3.2?

Thanks.

like image 671
Jonathan Avatar asked Dec 12 '22 22:12

Jonathan


2 Answers

From the release notes:

Throughout this document <Xcode> refers to the path in which the Developer Tools Essentials components are installed.

...

To uninstall iPhone SDK and Xcode developer tools on the boot volume along with the <Xcode> directory, from a Terminal window type:

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

So, if you used the default installation path of /Developer, you can uninstall using this command:

$ sudo /Developer/Library/uninstall-devtools --mode=all
like image 133
Jon-Eric Avatar answered Jan 05 '23 09:01

Jon-Eric


If you have multiple Developer folders, you can drag any of them to the trash without damaging the others. Developer folders are completely standalone.

Installing Developer Tools from the download image can also install tools in /usr for Unix-style and makefile-based development. The uninstall-devtools script removes these as well. That, also, should not affect remaining Developer folders.

like image 45
cdespinosa Avatar answered Jan 05 '23 09:01

cdespinosa