Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I actually uninstall Xcode?

Tags:

I'm having issues with Xcode and trying to install Homebrew, so I decided to just uninstall Xcode and start fresh. However NONE of the uninstall methods I have found anywhere online, work.

For starters, I installed via the App Store, for whatever that's worth. It seems to mean some things are different from those who did not.

Next, I have no /Developer directory, so ANYTHING that wants me to run something starting with a /Developer path will not work.

There is no /Library/Developer/Shared/uninstall-devtools so executing that will always fail.

Deleting the Xcode.app from my Applications folder and emptying trash, doesn't appear to have done anything except remove the actual application itself, the App store still thinks it's installed. I still can't install Homebrew.

How on earth can I actually succeed in uninstalling this thing?

EDIT: Does nobody know how to uninstall the App store version of Xcode so that I can reinstall it? =(

like image 646
JVC Avatar asked Jul 17 '12 20:07

JVC


People also ask

How do I completely remove Xcode from my Mac?

The first step to uninstalling Xcode from your Mac (and deleting its residual files) is to move the app itself to the macOS Bin. Launch Finder and click Applications on the right sidebar. Right-click on the Xcode icon and select Move to Bin on the context menu. That will immediately uninstall Xcode from your Mac.

Is it safe to remove Xcode from Mac?

Yes, it's safe to remove the XCode installer, once you've installed the XCode tools. XCode tools can be downloaded for free from Apple's website.

How do I uninstall Xcode beta from my Mac?

Here are the steps that you need to take to uninstall Xcode on Mac: Go to your Applications folder. Drag the Xcode icon to your trash. Clean up your Trash bin.


1 Answers

Drag Xcode.app into the trash. That's really about it. Bin your /Developer directory too (if you have one from an old Xcode install.)

The /Developer directory is now in /Applications/Xcode.app/Contents/Developer. The app package now contains everything.

...Everything, that is, except the command line tools, which you might well need. These can be installed from within Xcode (Preferences->Downloads->Components tab.) Instruments (and other developer tools) are now launched through the Xcode main menu (Open Developer Tool) rather than loading directly from Finder.

like image 158
Tim Avatar answered Sep 20 '22 17:09

Tim