macos - 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
解决方案
我可以通过一个简单且单一的命令找到解决方案,该命令再次安装使用终端运行 GIT 命令所需的软件。
xcode-select --install
在终端上运行上述命令并打开弹出窗口以安装软件,只需按照设置即可。它应该可以工作
推荐阅读
- assembly - src 或 destination 中两个值的汇编语言含义
- javascript - 为什么这个 Promise.all() 即使在所有承诺都解决之后也没有解决?
- symfony - Symfony Workflow - 是否可以使用学说关系作为状态持有者?
- python-3.x - 我有一个关于我的程序的问题,它读取用户输入的 2 个句子,然后以各种方式比较它们
- graphviz - 节点的排名提供未排名的结果
- python - 请求发布字典格式错误的数据
- powershell - 如何合并数组以将一个值与数组中的所有值进行比较?
- python - Python Battery AI - 如何仅在电池连接或断开连接时记录
- c - 在c中打印倒计时数字的递归函数
- javascript - 未捕获的 ReferenceError:未定义 Rx