Skip to content

Commit

Permalink
Merge pull request #3749 from MikeMcQuaid/xcode-requirement-macos-upg…
Browse files Browse the repository at this point in the history
…rade

xcode_requirement: inform users of macOS upgrade.
  • Loading branch information
MikeMcQuaid committed Jan 29, 2018
2 parents fdd3aa3 + 1373441 commit 28ce1a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Library/Homebrew/requirements/xcode_requirement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ def message
A full installation of Xcode.app#{version} is required to compile this software.
Installing just the Command Line Tools is not sufficient.
EOS
if MacOS.version >= :lion
if Version.new(MacOS::Xcode.latest_version) < Version.new(@version)
message + <<~EOS
Xcode#{version} cannot be installed on macOS #{MacOS.version}.
You must upgrade your version of macOS.
EOS
elsif MacOS.version >= :lion
message + <<~EOS
Xcode can be installed from the App Store.
EOS
Expand Down

0 comments on commit 28ce1a1

Please sign in to comment.