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.
- Control-click on Xcode
- Select
show package contents
- Open folder
- Delete
plugins
folder - Open finder window
- Navigate to folder containing Xcode app
- 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:
- Just trash the
/Applications/Xcode-beta.app
application
and, if you're replacing it with a new stable version (new Xcode.app), remember to:
- 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.
精彩评论