How to remove old custom Xcode installations?

When I install the beta version, I do a custom installation in a separate folder to the latest version. I have some old beta versions.

How to remove old custom versions of Xcode?

Can I just delete the folder?
Do I need to use a terminal?

The release notes suggest using this:

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

But would it just delete my original official version of version 3.2?

Thanks.

+4
source share
4 answers

From the release notes:

In this document, <Xcode> refers to the path in which the developer tools Essentials components are installed.

...

To remove the iPhone SDK and Xcode developer tools on the boot volume along with <Xcode> from the terminal window type:

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

So, if you used the default installation path for /Developer , you can remove this command:

 $ sudo /Developer/Library/uninstall-devtools --mode=all 
+6
source

If you have several developer folders, you can drag them to the trash without damaging the others. Developer folders are completely autonomous.

Installing developer tools from a boot image can also install tools in / usr for Unix-style and make-file based development. Removes-devtools script. This should also not affect other developer folders.

+5
source

This is more of a comment than an answer, but I don't want to clarify John-Eric's answer anymore:

... from the terminal window type:

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

Enter this for sure (from the root of your volume), do not enter the directory and do not try:

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

This will not work. Just FYI, it caught me ...

+2
source

For some reason, my system archived xcode 3, although I only used 4, and it put it in / Developer -old, so by running

sudo /Developer-old/Library/uninstall-devtools --mode=all

deleted the old xcode that was stuck.

0
source

Source: https://habr.com/ru/post/1306424/


All Articles