Homebrew / brew

🍺 The missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
41.21k stars 9.69k forks source link

Not working with latest Xcode 16 on macOS sequoia #18641

Open max-wittig opened 2 hours ago

max-wittig commented 2 hours ago

brew doctor output

admin@sequoia-xcode16 ~ % brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Your Command Line Tools are too outdated.
Update them from Software Update in System Settings.

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 16.0.

Verification

brew config output

HOMEBREW_VERSION: 4.4.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 35ebf4a047b00b2b3de33ba0081d71293cdadede
Last commit: 6 days ago
Core tap JSON: 26 Oct 12:33 UTC
Core cask tap JSON: 26 Oct 12:33 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 3.3.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/bin/ruby
CPU: quad-core 64-bit dunno
Clang: 16.0.0 build 1600
Git: 2.47.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.0.1-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: 16.0
Rosetta 2: false

What were you trying to do (and why)?

Run the following:

brew tap xfreebird/utils
brew install python3 kcpassword

What happened (include all command output)?

Warning: python@3.13 3.13.0_1 is already installed and up-to-date. To reinstall 3.13.0_1, run: brew reinstall python@3.13 ==> Fetching xfreebird/utils/kcpassword ==> Downloading https://github.com/xfreebird/kcpassword/archive/1.1.0.tar.gz Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/4c08f444bfd2f33f94734a7717c99ee6f1c764448c34505173acc1e197b1eeb9--kcpassword-1.1.0.tar.gz ==> Installing kcpassword from xfreebird/utils Error: Your Command Line Tools are too outdated. Update them from Software Update in System Settings.

If that doesn't show you any updates, run: sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install

Alternatively, manually download them from: https://developer.apple.com/download/all/. You should download the Command Line Tools for Xcode 16.0.

What did you expect to happen?

Packages just getting install

Step-by-step reproduction instructions (by running brew commands)

1. Get a new VM with Sequoia and Xcode 16.0
1. Install homebrew
1. Run `xcode-select --install` multiple times, try to follow the instructions, it does not help
1. You won't be able to install packages using homebrew
max-wittig commented 2 hours ago

Seems like after a reboot, it shows updates however this did not work:

If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
carlocab commented 2 hours ago

Yes, xcode-select seems to be pretty buggy for Xcode 16.

Please download the Command Line Tools for Xcode 16 from https://developer.apple.com/download/all/.