首页 > 解决方案 > Git Issue after update to Mac catalina OS : xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

问题描述

After updating Mac OS to the latest version (Mac Catalina) I am unable to run the command of GIT. When I try anything I will get this below error

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

标签: macosmacos-catalina

解决方案


我可以通过一个简单且单一的命令找到解决方案,该命令再次安装使用终端运行 GIT 命令所需的软件。

xcode-select --install

在终端上运行上述命令并打开弹出窗口以安装软件,只需按照设置即可。它应该可以工作


推荐阅读