From 215105a48410176bdd5ee0fc56a93b36bd06fa1b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 12 Nov 2016 11:31:27 +0000 Subject: [PATCH] diagnostic: skip xcode-select check with no Xcode. Skip the `xcode-select` configuration check if there's no CLT or Xcode installed as in that case neither will be used. Fixes #1055. --- Library/Homebrew/extend/os/mac/diagnostic.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index 9c106acf15..db054ea4c7 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -233,6 +233,7 @@ module Homebrew def check_xcode_select_path return if MacOS::CLT.installed? + return unless MacOS::Xcode.installed? return if File.file?("#{MacOS.active_developer_dir}/usr/bin/xcodebuild") path = MacOS::Xcode.bundle_path