Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fully remove Xcode 4

Tags:

xcode

xcode4

I want to remove all existing SDK versions as well as Xcode 4.

Xcode 4 Guide says to do this:

sudo /Xcode4/Library/uninstall-devtools --mode=all 

But I don't have Xcode4 at this location and the only place I see it is under /Developer/Applications

I've already run the uninstall-devtools that was previously found in /Developer/Applications and then did a reinstall.

What else can I do to completely remove everything and start from scratch?

like image 258
Jonas Anderson Avatar asked Mar 10 '11 05:03

Jonas Anderson


People also ask

How do I remove old 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.

Does uninstalling Xcode delete projects?

Deleting the program won't delete the projects. They'll just be sitting in whatever folders you left them in.


1 Answers

I use this command:

sudo /Developer/Library/uninstall-devtools --mode=all 

Edit (1 year later):

If you've downloaded Xcode from the App Store, it's self-contained, as @mediaslave suggests. You can just drag it to the trash or use AppZapper (or a similar utility) to remove the developer tools.

If you're looking to update it, you can also do that straight through the App Store.

like image 180
esqew Avatar answered Oct 04 '22 01:10

esqew