I understand that those who installed Xcode 4 via the developer site are able to uninstall via /Developer/Library/uninstall-devtools –mode=all
, however I installed
If you have installed xcode from Mac App store, then you need to delete it from Launch pad. You can do this by locating xcode icon in launch pad, long click on the icon till it starts dancing. Then delete it and wait for a while till the xcode.app is deleted from /Application. If you manually delete xcode.app from /Application, App store will continue to think its installed and will not allow you to reinstall in future.
From the above comment, the correct way is to:
This help for Xcode before MAS install /Library/Developer/Shared/uninstall-devtools
If you install it from MAS you can remove from launchpad, but also need to remove some folders** and files created by this app, you can use some helper application that found this files and safely remove it :)
** ex.: ~/Library/Developer, ~/Library/Application Support/Xcode, ~/Library/iPhone Simulator, Logs and etc.
In our installs of xCode 4 from the App Store, we are able to use:
sudo /Developer/Library/uninstall-developer-folder
You must uninstall first the
sudo /Library/Developer/Share/uninstall-devtools –mode=all
It might be something else in your particular case so maybe you can try
locate uninstall-devtools to find where the script is placed.
Then you can find the version you need of xcode from https://developer.apple.com/downloads/index.action
IMPORTANT: If you are going to install a previous version of the Developer Tools, be sure to restart the machine after installing.