前两天更新了Ventura,看似一切安好,今天要使用git却发现下面提示
'git log' failed with code 1:'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun'
解决方案
打开终端输入如下命令:
xcode-select --install
会弹出命令行工具安装窗口,点击安装,等待安装完成即可。