diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index d101ab7f6e..f703dd1beb 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -232,7 +232,9 @@ def check_for_latest_xcode end def check_for_stray_developer_directory - if MacOS::Xcode.version >= "4.3" and File.exist? "/Developer/Library" + # if the uninstaller script isn't there, it's a good guess neither are + # any troublesome leftover Xcode files + if MacOS::Xcode.version >= "4.3" and File.exist? "/Developer/Library/uninstall-developer-folder" return <<-EOS.undent You have leftover files from an older version of Xcode. You should delete them using: