How to safely remove an old beta version of Xcode

I want to remove Xcode 5 beta 5 before installing beta 6 (I know this under NDA, but so far I haven't mentioned anything about the software itself, I think we are good). What is the best / safest way to do this so that I don't endanger any functionality? I'm just afraid of randomly deleting things from the developer's folder.

+14
source share
5 answers

Go to the developer's folder, and in About Xcode.pdf they will have instructions

 /Developer/Developer/About\ Xcode.pdf 

This is near the end of the pdf, but you can search for uninstall and it will give you some options

You most likely want

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

But I recommend that you read the removal section so you can see the options available.

+8
source

The above answer is true for older versions of Xcode that are installed in the /Developer/ folder, but newer versions of Xcode Beta can be removed simply by dragging and /Applications/Xcode-beta.app application into the trash.

+27
source

Just close non-beta version of Xcode first.

+13
source

You can do the following to fix it (remove the xcode / xcode beta code).

The xcode element cannot be moved to the trash because some of its extensions are used.

  1. Hold down the Control key and press Xcode
  2. Select show package contents
  3. Open folder
  4. Delete plugins folder
  5. Open search box
  6. Go to the folder containing the Xcode application
  7. Move to basket
+9
source

The answer is correct, but only for older versions of Xcode. With newer versions:

  1. Just uninstall the application /Applications/Xcode-beta.app

and if you replace it with a new stable version (new Xcode.app), do not forget:

  1. run sudo xcode-select --switch /Applications/Xcode.app to specify the new application that you want to use for the command line developer tools.

If β€œthe application cannot be moved to the trash because some of its extensions are being used,” simply restart your Mac before trying again.

+1
source

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


All Articles