aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMax Howell2012-03-07 15:08:29 +0000
committerMax Howell2012-03-07 15:19:30 +0000
commit5b0d97efc741019378ee5b40c09796a3c31d2fcb (patch)
tree9fbe762492b07cc4c4390e17663a4c2426108da1 /Library/Homebrew/cmd
parenta396e5e720a7d583514a900585a72e39edf066a1 (diff)
downloadbrew-5b0d97efc741019378ee5b40c09796a3c31d2fcb.tar.bz2
Suggest full path to Xcode 4.3 /Developer
Some people seem to have an older xcode-select even after installing the CLT from inside Xcode or otherwise. So this is works for both. Now we aren't future-proofed in case Apple change the location, but hopefully they won't, seems unlikely. Refs Homebrew/homebrew#10743. Fixes Homebrew/homebrew#10745.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 6abadeab5..14c09543c 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -349,6 +349,11 @@ def check_xcode_select_path
path = `xcode-select -print-path 2>/dev/null`.chomp
unless File.directory? path and File.file? "#{path}/usr/bin/xcodebuild"
# won't guess at the path they should use because it's too hard to get right
+ # We specify /Applications/Xcode.app/Contents/Developer even though
+ # /Applications/Xcode.app should work because people don't install the new CLI
+ # tools and then it doesn't work. Lets hope the location doesn't change in the
+ # future.
+
<<-EOS.undent
Your Xcode is configured with an invalid path.
You should change it to the correct path. Please note that there is no correct
@@ -357,7 +362,7 @@ def check_xcode_select_path
these is (probably) what you want:
sudo xcode-select -switch /Developer
- sudo xcode-select -switch /Applications/Xcode.app
+ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
EOS
end
end