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? =(
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With