macos 在使用git命令时可能会遇到如下错误:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

不要慌,百度一下发现解决方法全是执行如下指令:

xcode-select --install

但是有时执行该指令时会遇到如下问题:

不能安装该软件,因为当前无法从软件更新服务器获得。

这个时候也不要慌,直接去developer.apple.com下载就好了。
进去选择自己版本相应的Command Line Tools,下载安装就ok了。
不能安装该软件,因为当前无法从软件更新服务器获得。

相关文章:

  • 2021-10-16
  • 2022-12-23
  • 2021-12-22
  • 2021-08-08
  • 2021-12-21
  • 2021-04-14
  • 2021-08-13
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2021-06-01
  • 2021-11-17
  • 2021-11-23
  • 2021-05-04
  • 2022-12-23
相关资源
相似解决方案