15

I upgrade MacOS Ventura 13. When I brew install git, appeared error:

Warning: You are using macOS 13.
We do not provide support for this pre-release version.
Mike Petrov
  • 776
  • 1
  • 5
  • 13
  • 1
    After updating to macOS Ventura, make sure to check in your Xcode - Preferences - Locations - If the Command Line Tools is selected in the dropdown. Mine was empty after the update. – Antonio Brandao Oct 27 '22 at 12:55
  • 1
    when i meet this problem last month , I figure out just install the beta Xcode 14 can solve this problem – 某某某 Nov 08 '22 at 14:04

5 Answers5

9

Brew suggests a couple of possible solutions:

Warning: Your Command Line Tools (CLT) does not support macOS 13.
It is either outdated or was modified.
Please update your Command Line Tools (CLT) or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

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 14.1.

The first and second suggestion didn't work for me at this time of writing. Trying the third suggestion, so downloading CLT RC2 via https://developer.apple.com/download/all/, did do the trick.

You can confirm this afterwards by running brew doctor. That CLT warning should no longer be there.

Yannick De Turck
  • 394
  • 1
  • 3
  • 13
8

Updating the homebrew itself would resolved the issue.

Run brew update before running brew upgrade

Baskar
  • 1,439
  • 12
  • 17
1

Actually upgrading brew should fix the issue, as https://brew.sh/2022/09/07/homebrew-3.6.0/ has preliminary support.


For some reason, In my experience brew itself was not functioning properly i.e brew update and brew upgrade did not work. So, I uninstalled and reinstalled brew version 3.6.10.

Try and it should fix the issue.

NotTheDr01ds
  • 15,620
  • 5
  • 44
  • 70
Ashraf
  • 11
  • 1
  • Hey. I have the same issue with `update` and `upgrade` - were you able to find a way to uninstall and reinstall without having to reinstall all your packages? – Jossy Apr 07 '23 at 23:20
1

I just go to https://brew.sh, and reinstall from there

Thang Hoang
  • 250
  • 5
  • 22
-1

Let's use:

xcode-select --install
Mike Petrov
  • 776
  • 1
  • 5
  • 13
  • 6
    this is right comment generally, but this time isn't. XCode 14.1 is not released yet, so if you want to install 14.1, you need to install XCode RC2 like answer below. – Daepa Oct 27 '22 at 07:34