Homebrew 无法进行升级,警告:您正在使用 macOS 13。我们不提供对此预发布版本的支持

Mik*_*rov 20 homebrew macos-ventura

我升级MacOS Ventura 13。当我brew install git时,出现错误:

Warning: You are using macOS 13.
We do not provide support for this pre-release version.
Run Code Online (Sandbox Code Playgroud)

Bas*_*kar 15

更新自制程序本身可以解决该问题。

brew update运行前运行brew upgrade


Yan*_*rck 10

Brew 提出了几种可能的解决方案:

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.
Run Code Online (Sandbox Code Playgroud)

在撰写本文时,第一个和第二个建议对我来说不起作用。尝试第三个建议,通过https://developer.apple.com/download/all/下载 CLT RC2 ,确实成功了。

您可以稍后通过运行来确认这一点brew doctor。CLT 警告不应再出现。

  • 安装 CLT RC2 也对我有用 - 谢谢! (2认同)

Mik*_*rov -1

让我们使用:

xcode-select --install
Run Code Online (Sandbox Code Playgroud)

  • 一般来说,这是正确的评论,但这次不是。XCode 14.1 尚未发布,因此如果您想安装 14.1,则需要安装 XCode RC2,如下面的答案。 (6认同)