diff options
Diffstat (limited to 'Library/Homebrew/os/mac/xcode.rb')
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 9ed95d3f2..d957792af 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -17,17 +17,19 @@ module OS          when "10.9"  then "6.2"          when "10.10" then "7.2.1"          when "10.11" then "8.2.1" -        when "10.12" then "8.3.2" +        when "10.12" then "8.3.3" +        when "10.13" then "9.0"          else            raise "macOS '#{MacOS.version}' is invalid" unless OS::Mac.prerelease?            # Default to newest known version of Xcode for unreleased macOS versions. -          "8.3.2" +          "9.0"          end        end        def minimum_version          case MacOS.version +        when "10.13" then "9.0"          when "10.12" then "8.0"          else "2.0"          end @@ -116,7 +118,7 @@ module OS          ].uniq.each do |xcodebuild_path|            next unless File.executable? xcodebuild_path            xcodebuild_output = Utils.popen_read(xcodebuild_path, "-version") -          next unless $?.success? +          next unless $CHILD_STATUS.success?            xcode_version = xcodebuild_output[/Xcode (\d(\.\d)*)/, 1]            return xcode_version if xcode_version @@ -152,7 +154,8 @@ module OS          when 73      then "7.3"          when 80      then "8.0"          when 81      then "8.3" -        else "8.3" +        when 90      then "9.0" +        else "9.0"          end        end @@ -213,6 +216,7 @@ module OS          # on the older supported platform for that Xcode release, i.e there's no          # CLT package for 10.11 that contains the Clang version from Xcode 8.          case MacOS.version +        when "10.13" then "900.0.22.8"          when "10.12" then "802.0.42"          when "10.11" then "800.0.42.1"          when "10.10" then "700.1.81" | 
