doctor: Add check for stray pre-4.3 Xcode files

/Developer/Library shouldn't exist if all the remnants of old
Xcode versions have been uninstalled, and tends to cause problems if
it's kept alongside modern Xcode.

"uninstall-developer-folder" should only remove /Developer/Library.
This commit is contained in:
Misty De Meo 2012-09-10 12:38:17 -05:00
parent 5ce864176a
commit 0329307770

View File

@ -231,6 +231,16 @@ def check_for_latest_xcode
end
end
def check_for_stray_developer_directory
if MacOS::Xcode.version >= "4.3" and File.exist? "/Developer/Library"
return <<-EOS.undent
You have leftover files from an older version of Xcode.
You should delete them using:
/Developer/Library/uninstall-developer-folder
EOS
end
end
def check_cc
unless MacOS::CLT.installed?
if MacOS::Xcode.version >= "4.3"