25 Feb
After Installing Safari 4 beta yesterday, I noticed that Xcode started crashing on every run. Even when I uninstalled the Safari beta, the problem didn’t resolve. So I uninstalled Xcode completely and then reinstalled it. To uninstall developer tools/Xcode type in the following command in the terminal
sudo /Developer/Library/uninstall-devtools –mode=all
But beware, this completely removes Xcode and once it is gone, it’s gone. Of-course you can always reinstall it. So be sure of what you are doing.
Update: Many users are also complaining about the same issue about Xcode crashing after installation of Safari 4 beta. Solution is to install Xcode 3.1.2.

| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Aug | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | ||||

53 Responses for "How To Uninstall Xcode Completely"
Thanks for making this available in your blog. Found it quick and easy from a google search! Great post.
i tried to uninstall xcode using the command in the terminal, however, i get a message saying “command not found”
to add to my frustration, i just put Leopard on my Imac. I then launched what i thought was xcode 3.0 only to find out that it was xcode 2.1. So i then tried to install xcode 3.0 over that and it will not launch. If anyone could help me with this issue, I would greatly appreciate it.
Make sure that that you copy paste the exact command in the terminal window. That should uninstall any version of Xcode. After that you can install a fresh copy of it.
Thanks for posting this. I had been trying to uninstall for over 10 minutes and kept getting a “command not found” message. I googled and found this post. Turns out I was missing the forward slash at the start of the directory name.
Exactly what I was looking for. Of note, if you’ve installed Xcode to a non-default location, you’ll (obviously?) need to change ‘/Developer/’ above to the path where you installed the developer tools to. In my case, it was ‘/Volumes/Dev/Developer/’.
Exceptional tip. Thanks for this. I had to strip out the Xcode naughtiness I had done and reinstall fresh. Works perfectly. Merry Christmas to you!
I’m still getting command not found after pasting the line directly from this site.
I suspect the problem may be that my Developer folder does not actually contain a library folder. Do you have any suggestions?
Hey dude, thanks for the tip but.. when i’m tried to copile in C languaje the terminal send me a error message like this: gcc it’s not a valid command. Can you help me please?
I almost forgotten ask you if you know about a software in mac for programing on C languaje of curse something that not be the terminal ^^
P.S. i’m sorry if my english isn’t good but… i only have a basic level in english
Hi Charles,
Eclipse is a good IDE for C programming on mac. Here is the link:
http://www.eclipse.org/downloads/
Hi Mark
You will have to see where you installed Xcode and then instead of Developer/Library write that path name in the command.
Thanks you i found the problem i only reinstall xcode was easy ^^
Thanks, latest XCode doesnt like compiling for older iPhone OS versions, now I reinstalled XCode 3.2.2
Thanks for this post. It was easy and fast to uninstall xcode completely.
Hi,
I am a beginner C programmer and am new to xcode. I am using the book “Learning C on Mac” and in that book, it tells me to use the standard tool from the command line utility to create the first program. The problem is that I have xcode 3.2.3 and in that version there command utility can’t be found int the sidebar and thus no standard tool. So, I uninstalled using the this method and I assumed that I successfully got rid of it cause I searched for it in finder and nothing showed up. I didn’t restart and I re-installed it.
How do I get the command line utility?
The command line is the ‘Terminal’ application in your Mac. You can find Terminal in you Mac by going to Applications >> Utilities. No need to uninstall XCode for that!
it says, type in the password otherwise u will loose important system files….i dnt have a passowrd….now wat do i do?
Awesome, thanks very much for the tip! Worked perfectly!
“sudo: /etc/sudoers is mode 0644, should be 0440
Segmentation fault
”
What can I do ?
Thanks!! i got 8 GB back from my macbook pro!
thanks mate
Thanks bro, very helpful
everybody having trouble with the command not found error, please refer back to your macintosh HD and go to developers and library and check if there is a uninstall-devtools there. If not the try searching for it and change the location to wherever it was moved/installed.
I suspect that those (like me) who get the “command not found” error despite pasting correctly are folks who installed xcode 4 via the app store.
thanks!!
Thanks!
For me – uninstalling Xcode before installing new version was VITAL because I use virtual Mac OS X in VirtualBox and having lack of free space (-2.93 Gb)
(now I’m upgraded from 3.2.3 to 4.0.1
Is there anybody familiar with this message:
Interface Builder was unable to determine the type of “testXcode.xcodeproj
Thats what happen when i try to reopen an old project.
If anybody can help please
Thanx.
Thanks for the Tip!
Thank god for this blog! I finally found the way to uninstall Xcode. Thank you guys.
THANKS!! MY MAC GOT ITS 10GB BACK!
Hi Guys,
I struggled with removing it not being a Mac person by trade and just removed the starting $ from the pasted bash command and it works.
Thanks. The first couple times I tried this it didn’t work but now that I reset my password and my root password it worked great. Thanks again.
great post !
Excellent! Works like a charm. Thanks for sharing your knowledge!
Hi Pankaj,
I need your assistance in un installing the XCODE in my MAC.
Senario is that, i have two XCODE versions(3.2 and 4.3) installed in different paths in same system.
As i’m facing so many problems with this two versions in one system.
My concern is that i want to uninstall XCODE totally from my system.
kindly let me know any procedure in this.
Thanks in advance.
Finally some uninstall code that works!
Cheers
Thanks buddy, Worked like a charm.
I just installed previous version of Xcode 4 as I have recently upgraded to Mac OS X Lion and now need to install Xcode 4.1 available for free at Mac App Store.
Thanks anyways!
Great Post!!!
Awesome! This was a huge lifesaver when we needed to step down from the new Beta to an older XCode release so we could upgrade some of our older projects.
Thanks it’s work fine for me…
[...] [via pushkararora.com] [...]
Thanks for this tip. Super helpful!
[...] del Mac: # sudo /Developer/Library/uninstall-devtools –mode=all consejo que encontré en el blog de Pushkar Singh Arora. Tras esto, todo seguía igual, me bajaba la actualización del App Store pero no pasaba nada más. [...]
Any tips on how to find out which version of xcode is right for my computer?
Hello,
I Install xcode 4.2 on my pc. After few days I uninstall it using the same command given by you. And now I am trying to install xcode 3.2.6. It installs successfully but when I am trying to open it,then it does not open.
Again I install xcode 4.2 then it works properly but again I uninstall it & install xcode 3.2.6 then it does not open.
Please help me.
Hello, I have xcode 3 installed.If I overwrite xcode4,what will happen? pls write a step to uninstall old one.thanks.
works like a charm!
well done, worked great !!!
OMG thank you for your post ive been tring to remove xcode for ever and keeps giving me errors. Great info : )
just use spotlight to find where the ‘uninstall-devtools’ script is located and then run it from the terminal.
e.g:
1) cd ~
2) sudo /Developer/Library/uninstall-devtools
There’s also no need to add the -mode parameter. Seems a lot of bloggers that post this solution have latched onto this for some bizarre reason.
wow it actually worked!!
[...] Kudos to Pushkararora.com 53.734750 -8.989992 Rate this: Share:MoreLike this:LikeBe the first to like this post. This entry was posted in Guides and tagged bash, max osx, remove, terminal, uninstall, xcode by Eoin. Bookmark the permalink. [...]
Thanks very much, worked perfectly, as everybody has said before.
Leave a comment
Your email will never be published/shared.