Closed fraserhess closed 8 months ago
CLT is a requirement for non-latest macOS (so macOS 13.6 counts), so this is expected. The latest Xcode.app does not ship MacOSX13.sdk but the CLT does.
I guess it doesn't universally matter for every formulae if you're not building from source, but we don't make that distinction on installer level.
Things like Python however do still need the CLT at the moment regardless: https://github.com/Homebrew/homebrew-core/blob/13fda40c2e56386c3c969fc1bc0e186095228dc7/Formula/p/python@3.11.rb#L24-L26
This is a known limitation. I was not able to find an approach that worked consistently for Xcode alone and checked for the necessary version. Given what @bo98 said and that our Bash-based installer requires the CLT globally: considering this not a bug but something we'll review a PR for if you can fix it. Sorry!
install
oruninstall
script?brew config
andbrew doctor
and included their output with your issue? If you couldn't install: provided your OS version with the output of your issue?What you were trying to do (and why)
Run the Homebrew package installer on a Mac (macOS 13.6) with Xcode installed.
What happened (include command output)
An error is thrown when running trying to install the package:
What you expected to happen
Homebrew would install successfully.
The Distribution.xml checks for the presence of
/Library/Developer/CommandLineTools/usr/bin/git
but not for/Applications/Xcode.app/Contents/Developer/usr/bin/git
. This is in contrast to the postinstall that extendsPATH
for both/Library/Developer/CommandLineTools/usr/bin
and/Applications/Xcode.app/Contents/Developer/usr/bin
Step-by-step reproduction instructions (by running
brew
commands)