From 6c49c878cde04027a4ec59706263c4aa1f591d1a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 28 Nov 2018 14:25:36 +0000 Subject: [PATCH] os/mac/diagnostic: output non-default Xcode prefix. This should help people find it when this is a fatal error (and they don't look at `brew config`). --- Library/Homebrew/extend/os/mac/diagnostic.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index b47998febf..245357e6e6 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -111,9 +111,11 @@ module Homebrew def check_xcode_minimum_version return unless MacOS::Xcode.below_minimum_version? + xcode = MacOS::Xcode.version.to_s + xcode += " => #{MacOS::Xcode.prefix}" unless MacOS::Xcode.default_prefix? <<~EOS - Your Xcode (#{MacOS::Xcode.version}) is too outdated. + Your Xcode (#{xcode}) is too outdated. Please update to Xcode #{MacOS::Xcode.latest_version} (or delete it). #{MacOS::Xcode.update_instructions} EOS