diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index b565d19886..c7da0db6ca 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -290,6 +290,9 @@ module MacOS extend self # we do this to support cowboys who insist on installing # only a subset of Xcode Pathname.new '/Developer' + elsif File.directory? '/Applications/Xcode.app/Contents/Developer' + # fallback for broken Xcode 4.3 installs + Pathname.new '/Applications/Xcode.app/Contents/Developer' else nil end