Uninstalling XCode4 from a Mac OS X Lion

Installing and Uninstalling programs with ease is one place where the windows machine scores over the Mac OS (or so I feel). Every program we install on a windows machine comes with an uninstaller application and all that we need to do to remove the application is just run the uninstaller and viola!! The app is gone :)

But things are not as simple in a MAC OS. All the applications we download are from the App store and unfortunately, we do not have an option to run an uninstaller of sorts to delete the applications we dont want any longer. How things are done in  a MAC is, if we dont want something, then we drag the application into the trash like below.

This procedure helps if we are removing normal applications like games or utilities from our dashboard. But in order to remove developer applications like XCode, we need to follow a different approach.

XCode is a developer utility provided by Apple (through the App store) through which we can develop applications for iDevices like the iPhone and iPad etc. Usually, updates are released for these apps through the app store and if we logged in to the store through the ID which we used for installing XCode, then we can just hit the update button and get the developer tool updated. But if we are not able to update it, then it becomes a problem.

In that case, what we do is delete the entire application itself and re-install using the app store (this is a tedious job I know, but we really dont have another option). To completely remove the dev tool from the machine, fire the following code in the terminal window.

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.
Happing iDeveloping :)
Cheers,
Karthik Venkatachalapathi
Previous
Previous

Flying to the US? What about ur Pre-Departure Expenses? :)

Next
Next

How to plan your application season?