How to uninstall XCode4 from Mac OS X Lion

21 07 2011

So i had an old version of XCode on my computer, and i tried upgrading it with the new mac app store, and it didn’t work. I wanted to uninstall it and then reinstall it using the app store, but they of course don’t have an option to UNINSTALL apps using the app store

Google tells me to just delete the app and then you can click ‘install’ again on the purchases tab in the app store, but since this is xcode, you can’t just drag an application to the trash. You have to run a command using Terminal. So, open terminal and type:

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

The directory MIGHT be different, but for me it installed it to /Developer. Anyway, it should list all the packages and then say it deleted them. I restarted my mac just to be safe.

THEN, if it STILL says that xcode is installed, you need to delete the installer from /Applications (different from the Applications folder in your home folder). Go Macintosh HD/Applications and there should be a file called “Install Xcode” and then you can delete that folder, and the ‘install’ button will again be enabled, allowing you to install it from the mac app store and get on with your life

Advertisement

Actions

Information

4 responses

22 07 2011
Ivan

Thank you

24 07 2011
12 08 2011
Tifom

Thanks. Worked perfectly for me.

20 09 2011
SGSragorak

I did exactly what you said to type in and it kept getting an errot message. I did it so much that terminal told me if I continue there would be a possibility of alot of data being erased Im I going to the wrong terminal or should I just go into developer/library/xcode

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.