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.