doctor: clarify 10.10 Xcode situation.

This commit is contained in:
Mike McQuaid 2014-10-19 19:40:37 +01:00
parent 5f1a18c3ae
commit f96c6e5c6c

View File

@ -246,11 +246,25 @@ if MacOS.version >= "10.9"
end end
def check_xcode_up_to_date def check_xcode_up_to_date
if MacOS::Xcode.installed? && MacOS::Xcode.outdated? then <<-EOS.undent if MacOS::Xcode.installed? && MacOS::Xcode.outdated?
s = <<-EOS.undent
Your Xcode (#{MacOS::Xcode.version}) is outdated Your Xcode (#{MacOS::Xcode.version}) is outdated
Please update to Xcode #{MacOS::Xcode.latest_version}. Please update to Xcode #{MacOS::Xcode.latest_version}.
Xcode can be updated from the App Store.
EOS EOS
if MacOS.version == :yosemite && MacOS::Xcode.latest_version == "6.1"
s += <<-EOS.undent
Xcode 6.1 is required on Yosemite to compile anything (6.0.1 does not include
the 10.10 SDK). Apple have not yet uploaded it to the App Store. Instead it must
be downloaded from:
https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_6.1/xcode_6.1.dmg
For some software installing the CLT may be enough:
xcode-select --install
EOS
else
s += "Xcode can be updated from the App Store."
end
s
end end
end end