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?


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.

  • 1
    I changed my directory to Applications. Then I ran install Xcode. Here's what I got: usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... Is there anything else I should be doing? – Honey Jul 18 '17 at 16:56
  • 2
    @Honey Apple has actually changed how they handle the Xcode install since this original answer. Now, you can just delete Xcode from your Applications folder and download again from the App Store. – Nathan Walker Jul 19 '17 at 1:50

try this in terminal:

xcode-select --install

it brings up and downloads developer tools for you

  • 4
    xcode-select: error: command line tools are already installed, use "Software Update" to install updates – karlingen Jul 3 '19 at 18:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .