brew 更新错误您的 CLT 不支持 macOS 11.2

时间:2021-03-19 03:50:13

标签: xcode macos homebrew

brew updatebrew install 都导致相同的错误:

Error: Your CLT does not support macOS 11.2.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.

但我安装了最新的 Xcode 12.4,并且在 Xcode - Preferences - Locations - Command Line Tools 中指向 Xcode 12.4。

1 个答案:

答案 0 :(得分:2)

第一次尝试:

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

如果仍然是 Error: Your CLT does not support macOS 11.2,那么您需要:

sudo rm -rf /Library/Developer/CommandLineTools

并从 https://developer.apple.com/download/more/

下载并安装最新的 Command Line Tools