diff options
| author | Mike McQuaid | 2014-10-19 19:40:37 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-19 19:40:37 +0100 |
| commit | f96c6e5c6c1c4ee86be783441ab682135636643c (patch) | |
| tree | 0ed88b468619b0d9c72c94ea49aca54e88629868 | |
| parent | 5f1a18c3ae29a3e7b169f51466e77b3b664d71e0 (diff) | |
| download | brew-f96c6e5c6c1c4ee86be783441ab682135636643c.tar.bz2 | |
doctor: clarify 10.10 Xcode situation.
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 81930d18f..c1a0d20ab 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -246,11 +246,25 @@ if MacOS.version >= "10.9" end 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 Please update to Xcode #{MacOS::Xcode.latest_version}. - Xcode can be updated from the App Store. 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 |
