报错系统:MacOS
报错场景:mac维修时间机器恢复后更新oh-my-zsh报错;使用git报错
报错内容:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
解决方法:
1.重装(使用该方法解决)
xcode-select --install
2.切换路径
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
这篇博客主要讲述了在MacOS系统中遇到xcrun错误,表现为使用oh-my-zsh和git时出错。错误信息为'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)'。解决方案包括重新安装Xcode的命令行工具(xcode-select --install)以及切换Xcode的开发者路径(sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer)。通过这些步骤,用户可以成功解决在终端中使用开发工具的问题。
1191

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



