mxcl/homebrew — Issue #10745: xcode-select suggestion
Author: phoenixsong6
Created: 2012-03-07 13:29:08+00:00
State: open

I finally got around to upgrading to XCode 4.3 today, and when running `brew doctor` after the installation to check for errors, I received the warning

```
Warning: Your Xcode is configured with an invalid path.
You should change it to the correct path. Please note that there is no correct
path at this time if you have *only* installed the Command Line Tools for Xcode.
If your Xcode is pre-4.3 or you installed the whole of Xcode 4.3 then one of
these is (probably) what you want:

sudo xcode-select -switch /Developer
sudo xcode-select -switch /Applications/Xcode.app
```

No matter what which of the suggested options I used, the warning continued to appear. Finally, I looked up the warning in doctor.rb to find the cause and found that homebrew searches for `/Applications/Xcode.app/usr/bin/xcodebuild`, which doesn't exist.

The proper suggestion here should be: `sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer`

Since I don't want to muck up the core files, I decided to open an issue instead of a PR.