开发者

How to uninstall old Xcode beta safely

I want to uninstall Xcode 5 beta 5 before installing beta 6 (I know it's under NDA, but as long as I don't mention anything about the software itself, I think we're good). What's the best/safest way of doing that, so I don't jeopardize开发者_如何学编程 any functionality? I'm just afraid of arbitrarily deleting things from the developer folder.


The above answer is correct for older versions of Xcode that install in the /Developer/ folder, but newer versions of Xcode Beta can be uninstalled by simply dragging the /Applications/Xcode-beta.app application into the Trash.


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

The item xcode can’t be moved to the Trash because some of its extensions are in use.

  1. Control-click on Xcode
  2. Select show package contents
  3. Open folder
  4. Delete plugins folder
  5. Open finder window
  6. Navigate to folder containing Xcode app
  7. Move to trash


Just close non-beta Xcode first.


Go into your developer folder and in the About Xcode.pdf it will have instructions

/Developer/Developer/About\ Xcode.pdf

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

You will most likely want

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

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


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

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

and, if you're replacing it with a new stable version (new Xcode.app), remember to:

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

If "the app can’t be moved to the Trash because some of its extensions are in use", just restart the Mac before trying again.


Xcode-beta.app was in ~/Downloads for me, version 12.2 RC.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜