cairnechen
V2EX  ›  问与答

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

  •  
  •   cairnechen · Feb 7, 2021 · 3146 views
    This topic created in 2120 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
    xieren58
    Feb 7, 2021
    1
    没 xcode 怎么编译?
    lululau
    lululau
    Feb 7, 2021
    2
    sudo xcode-select -r && sudo xcode-select --install
    cairnechen
    cairnechen
    OP
    Feb 7, 2021
    3
    @xieren58 你在说啥,之前一直都是只要 Command Line Tools 就够了
    LinusXu
    LinusXu
    Feb 7, 2021
    4
    每次 macOS 升级后都需要重新安装 CLT,估计是因为每次升级同时会有 Xcode 的更新
    cairnechen
    cairnechen
    OP
    Feb 7, 2021
    5
    @LinusXu 我刚才试着重新在 Apple Developer 下载了最新版,好家伙,可以了,看起来这个提示其实不是说你没有安装 Command Line Tools,而是说你的 Command Line Tools 没有更新到最新版
    chinvo
    chinvo
    Feb 7, 2021
    6
    @cairnechen #4 不是的, 系统更新会删除旧版 Command Line Tools...
    LearningToCode
    LearningToCode
    Feb 7, 2021
    7
    XCode 还是得下一个,每次系统更新前就推送 XCode 更新。
    cairnechen
    cairnechen
    OP
    Feb 7, 2021
    8
    @chinvo 啊?是这个原因吗,前两天我的确更新了 11.2,不过我特地看了 /Library/Developer/CommandLineTools 还在的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1881 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:35 · PVG 18:35 · LAX 02:35 · JFK 05:35
    ♥ Do have faith in what you're doing.