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 | 30 |

70 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.
I ran this, then deleted what was left over of the Developer directory, then rebooted. However when I try to install XCode again via the Mac Store, it tells me I still have XCode installed and need to update it via system update. System update does not find any updates for XCode.
So Lion appears to still think XCode is installed somehow.
Finally got it. I also needed to delete /Developer and /Users/USERNAME/Developer before the Mac Store would recognize XCode as deleted and let me reinstall it.
Hello
I amn not able to find the path where my folders are located…
so please tel me how to find that…
Thanks a lot! It works perfectly.
What sort of a moron would not put the default path for the uninstaller. Take off your shades you look ugly on them..
oh brilliant, and now my Java sdks are also gone. As he says, MAKE SURE YOU KNOW WHAT YOU’RE DOING!!
Thank you very much!
Another “thank you”! This fixed my weeeeird freaking Xcode issue as well, even almost a year after your post!
Forget what I said before. This did fix one freaking issue (somehow setting up the BaseSDK to “iphoneos”, which is even recommended by “Validate Settings” would break up the build), but not the main one (when trying to build I still get this error, though none of the listed solutions work as well: http://stackoverflow.com/questions/5329001/apple-mach-o-linker-error-when-compiling-for-device ).
Ok, you can disregard my 2 previous comments. Maybe I didn’t even need a reinstall after all. I’ll never know now. But Thanks! This worked perfectly for removing XCode and I reinstalled it, all in less than half an hour. Perfect!
Thanks alot for ur smart idea.
Thank you so much! It’s deleting since I had the SIGABRT error (couldn’t let me run my apps on the iDevice) so I wanted to reinstall and start fresh! Thanks to you guys my problems are solved!
Thanks man! you helped me a lot!
I think appcleaner or mackeeper or any other professional uninstaller should do the work without problem.
Thanks a lot man . . . .Its great help
worked perfectly
I installed XCode 4.3.2 a few days ago and it keeps crashing. The command mentioned above is not working as I Terminal cant find the command. I can’t find the uninstall-devtools script either with sportlight. Do you have any other ideas??
I have tried so many things!! i get to the password and then it says ‘command not found’ so i try it again and then it says that the sudo thing i put in is ‘command not found’ I have changed my password and tried again but still doesn’t work! Help me please.
Leave a comment
Your email will never be published/shared.