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

About these ads

Actions

Information

6 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

28 02 2012
Désinstaller Xcode 4 sous Mac OS X Lion

[…] Il était temps que je mette les mains sérieusement dans le cambouis d’Xcode et pour commencer, je dois désinstaller mon ancienne version d’Xcode avant de charger la nouvelle depuis l’App Store. J’économiserai ainsi pas mal de précieux Mo sur mon petit disque dur de MacBook Air (Xcode passe de 4Go à 1,8Go dans sa dernière version). Comment procéder avec un Mac OS X Lion qui adore cacher des fichiers dans des endroits inaccessibles ? Tout simplement en lançant le terminal et en tapant la ligne suivante : sudo /Developer/Library/uninstall-devtools –mode=all Pour finir, bien penser à détruire le fichier Install Xcode qui se trouve dans le dossier “Applications”. Petit redémarrage de la machine pour la forme. L’icône Xcode est toujours dans le Launchpad, mais un gros point d’interrogation indique que la cible n’est plus là. On lance l’App Store et on lance l’installation de la nouvelle mouture de Xcode qui, on le remarque, n’est plus qu’une seule application contrairement au bundle précédemment proposé. (Source : Mark Grandi’s Blog) […]

8 04 2012
how to delete

I’m very happy to find this site. I need to to thank you for your time just for this fantastic read!! I definitely really liked every part of it and I have you bookmarked to check out new stuff in your site.

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 )

Google+ photo

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

Connecting to %s




Follow

Get every new post delivered to your Inbox.

%d bloggers like this: