今天升级mac系统到macOS mojave后,在终端操作gitlab时遇到一行莫名其妙的错误:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
通过google,查找到以下解决方法:
xcode-select --install
然后重新打开终端就可以了
升级macOS到Mojave后,在使用GitLab时遇到xcrun错误。解决方案为运行命令xcode-select --install,重启终端即可解决。此错误与缺少必要的开发者工具有关。
4226

被折叠的 条评论
为什么被折叠?



