From ba9b1f918d40db57c5fc7a2ac4fd8fd3eed8f24d Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 1 Mar 2012 16:57:14 +0000 Subject: The doctor suggests upgrading Xcode Closes Homebrew/homebrew#9199.--- Library/Homebrew/cmd/doctor.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index b192b72a4..57dfa7f90 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -198,6 +198,19 @@ def check_xcode_exists end end +def check_for_latest_xcode + latest_xcode = case MacOS.version + when 10.5 then "3.1.4" + when 10.6 then "3.2.6" + else "4.3" + end + if MacOS.xcode_version < latest_xcode then <<-EOS.undent + Your Xcode version is outdated + Please install Xcode #{v}. + EOS + end +end + def check_cc unless File.exist? '/usr/bin/cc' <<-EOS.undent -- cgit v1.2.3