代码之家  ›  专栏  ›  技术社区  ›  yong ho

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

  •  0
  • yong ho  · 技术社区  · 3 年前

    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.
    

    但是我已经安装了最新的XCODE12.4,在Xcode-Preferences-Locations-Command-Line Tools中指向了XCODE12.4。

    0 回复  |  直到 3 年前
        1
  •  0
  •   Li Zheng    3 年前

    第一次尝试:

    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
    

    Command Line Tools https://developer.apple.com/download/more/