No luck.
Everything looked good, but this very odd crash was still occurring. We were both scratching our heads. The weird part was that the program ran perfectly on the iPhone and in the simulator, as long as I didn’t have the debugger attached. The other engineer tried the build on his machine and everything worked as it should and he was able to run the Xcode debugger.
I decided to completely remove and reinstall Xcode and the iPhone SDK. Normally, you just drag a Mac application to the Trash Can and you’re good. Xcode is a little different. There’s a ton of different folders, tools, SDKs, simulators, etc scattered around the Hard Drive.
So how do you remove everything?
Fire up Terminal and type:
Type in your password and go grab a coffee. The Uninstall process takes quite a bit of time as it analyzes every package on your machine. However, it will find and remove all Xcode and iPhone SDK components. I highly recommend you to restart your Mac before re-installing Xcode.
December 22nd, 2010 at 8:31 pm
That’s it. Only one line is required to remove the whole ‘mess’.
December 23rd, 2010 at 7:06 pm
Yup. That’s it.
July 31st, 2011 at 2:37 am
Thanks, it worked for XCode 3 on a snow leopard 10.6.8
September 13th, 2011 at 2:28 am
Thx, it’s worked on lion 10.7.1.
October 18th, 2011 at 4:27 am
Thx, works great on 10.7.2.
November 29th, 2011 at 4:58 pm
Hi,
To uninstall the Xcode I entered the required “sudo” string , and the system asked me the password.I entered my Apple ID(password)-the system didn’t accept it. It looks like the system wants the administrator’s pasword.
I’ve bought a used Macbook. How to get the password.
What password have I to enter?
Thank you.
Vlad.
December 2nd, 2011 at 1:58 am
Hi Vlad,
Yes, you do need to enter an, not the, administrators password. It’s not your Apple ID password. If you don’t know it, because you bought it used. You can reset it by rebooting with the OS X CD and reseting the admin password from there. Here’s an article on how to do that:
http://www.askdavetaylor.com/how_do_i_reset_my_mac_os_x_admin_root_password.html
Good luck!
// Terry.
December 15th, 2011 at 11:31 am
hi had a snow lepord and was using xcode 3 but recently i update to lion and was trying to unistall xcode 3 and intall 4 i got error message.
once i type
sudo /path/to/xcode/library/unistall-devtools–mode=all
in the terminal it asked for password and when i enter the admin password it says command not found.
can anyone help me please how to unistall xcode 3 on lion..
January 5th, 2012 at 9:04 am
Hi Ishwor,
It looks like you’ve typed the command incorrectly. Two things:
1. You have “unistall” instead of “uninstall”
2. There is a space between “devtools” and “-mode”
Hope that helps!
// Terry.