From 5b0d97efc741019378ee5b40c09796a3c31d2fcb Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 7 Mar 2012 15:08:29 +0000 Subject: 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.--- Library/Homebrew/cmd/doctor.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') 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 -- cgit v1.2.3