brew update
和 brew 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。
答案 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