macOS更新后Git无法正常运行(xcrun:错误:无效的活动开发人员路径(/ Library / Developer / CommandLineTools)

谁说胖子不能爱 提交于 2021-02-13 14:06:09

问题:

Last night (November 2018) I updated to macOS Mojave, (this will probably work for Catalina too) 昨晚(2018年11月)我更新到了macOS Mojave,(这可能也适用于Catalina)

This morning I navigated to my work's code base in Command line on my MacBook pro, 今天早上,我在MacBook Pro的命令行中导航到工作的代码库,

typed in "git status" in the repo and received the error: 在仓库中输入“ git status”并收到错误:

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

解决方案:

参考一: https://stackoom.com/question/3YNW9/macOS更新后Git无法正常运行-xcrun-错误-无效的活动开发人员路径-Library-Developer-CommandLineTools
参考二: https://oldbug.net/q/3YNW9/Git-is-not-working-after-macOS-Update-xcrun-error-invalid-active-developer-path-Library-Developer-CommandLineTools
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!