cairnechen
V2EX  ›  问与答

实在不想安装 xcode,已经从 Apple Developer 安装 Command Line Tools 成功了,为啥 brew upgrade 还是提示需要执行 xcode-select --install?

  •  
  •   cairnechen · Feb 7, 2021 · 2778 views
    This topic created in 1922 days ago, the information mentioned may be changed or developed.
    Warning: Building [email protected] from source:
    The bottle needs the Apple Command Line Tools to be installed.
    You can install them, if desired, with:
    xcode-select --install
    8 replies    2021-02-07 13:48:11 +08:00
    xieren58
        1
    xieren58  
       Feb 7, 2021
    没 xcode 怎么编译?
    lululau
        2
    lululau  
       Feb 7, 2021
    sudo xcode-select -r && sudo xcode-select --install
    cairnechen
        3
    cairnechen  
    OP
       Feb 7, 2021
    @xieren58 你在说啥,之前一直都是只要 Command Line Tools 就够了
    LinusXu
        4
    LinusXu  
       Feb 7, 2021
    每次 macOS 升级后都需要重新安装 CLT,估计是因为每次升级同时会有 Xcode 的更新
    cairnechen
        5
    cairnechen  
    OP
       Feb 7, 2021
    @LinusXu 我刚才试着重新在 Apple Developer 下载了最新版,好家伙,可以了,看起来这个提示其实不是说你没有安装 Command Line Tools,而是说你的 Command Line Tools 没有更新到最新版
    chinvo
        6
    chinvo  
       Feb 7, 2021
    @cairnechen #4 不是的, 系统更新会删除旧版 Command Line Tools...
    LearningToCode
        7
    LearningToCode  
       Feb 7, 2021
    XCode 还是得下一个,每次系统更新前就推送 XCode 更新。
    cairnechen
        8
    cairnechen  
    OP
       Feb 7, 2021
    @chinvo 啊?是这个原因吗,前两天我的确更新了 11.2,不过我特地看了 /Library/Developer/CommandLineTools 还在的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1572 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 16:42 · PVG 00:42 · LAX 09:42 · JFK 12:42
    ♥ Do have faith in what you're doing.