Skip to content
Snippets Groups Projects
Commit 5b0d97ef authored by Max Howell's avatar Max Howell
Browse files

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.
parent a396e5e7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment