MacOS – Reinstalling XCode

mac-appstoremacosxcode

I just upgraded to Lion, and was having problems with my old XCode installation, so I just removed it completely by running

sudo /Developer/Library/uninstall-devtools
sudo rm -rf /Developer

Now having removed the developer tools, I would like to reinstall them. But as soon as I go to the App Store, XCode is still marked as installed. How can I make the App Store realize that XCode has been uninstalled?

Best Answer

The App Store actually recognizes the Install Xcode.app file in the Applications folder. So, in order to reinstall, just run Install Xcode again from the Applications folder. But, if you wish to redownload from the App Store, just delete the application from the Applications folder, empty your trash, and relaunch the App Store if it's open.