Brew: Homebrew ignores Xcode10's command line tools?

Created on 26 Sep 2018  Â·  2Comments  Â·  Source: Homebrew/brew

Homebrew is trying to install command line tools for xcode 9.4 during installation. But I already have xcode 10 installed from app store and the xcode-select path properly setup.

After homebrew installation it also resets my environment variable "xcode-select -p " to the 9.4 command line tools, totally ignoring my xcode 10 path.

And it also triggers the app store to upgrade the standalone command line tools from 9.4 to 10 automatically, which means now I have 2 exactly same sets of command line tools. In which case now I can switch between them for fun ironically…

I checked the installation script myself:

def should_install_command_line_tools?
   return false if force_curl?
   return false if macos_version < "10.9"

   if macos_version > "10.13"
     !File.exist?("/Library/Developer/CommandLineTools/usr/bin/git")
   else
     !File.exist?("/Library/Developer/CommandLineTools/usr/bin/git") ||
     !File.exist?("/usr/include/iconv.h")
   end
end

You can see it's forcing users to install standalone command line tools on Mac OS above 10.13? Is standalone command line tools mandatory other than xcode? Is it designed to be like that?

Appreciate any help.

outdated

All 2 comments

You should fill out the issue template. That will help people help you more quickly.

You can see it's forcing users to install standalone command line tools on Mac OS above 10.13? Is standalone command line tools mandatory other than xcode? Is it designed to be like that?

Yes.

Please fill out the issue template in future.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vitahlin picture vitahlin  Â·  4Comments

mislav picture mislav  Â·  3Comments

fooness picture fooness  Â·  4Comments

stejmurphy picture stejmurphy  Â·  4Comments

paanvaannd picture paanvaannd  Â·  4Comments