Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed Xode downloading the DMG (not from the Mac App Store). Now each time I run brew doctor it says:

Your Xcode (4.6.1) is outdated
Please install Xcode 4.6.3.

But In App Store > Available Updates.. it does not appear. How can I upgrade it?

Please note that I'm not using Xcode but Xcode command-line tools (the C++ compiler) and if possible I would like to avoid reinstalling it.

share|improve this question
Since you didn't install Xcode from the Mac App Store it won't display updates for it. You need to download the newest version from and update manually. You may prefer to uninstall Xcode instead and purchase the App Store version (which is free). Once it is installed go to Xcode>Preferences>Downloads>Components to download the command line tools. – jaume Jun 27 '13 at 11:27

I have just found this on GitHub Gists.

Try enter the following command in Terminal:

sudo xcode-select -switch /Applications/

Solved my brew doctor problem of Homebrew not recognising updated version of Xcode.

Also see this Homebrew compatibility guide and ensure that your OS is compatible with Command Line Tools on their own or if you need the full version of Xcode.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.