当我输入git init时,尝试将更改推送到git时,遇到了这个错误。
xcrun:错误:无效的活动开发人员路径
(/Library/Developer/CommandLineTools),缺少xcrun: /Library/Developer/CommandLineTools/usr/bin/xcrun
我尝试了以下解决方案。
xcode-select —install
sudo xcode-select -switch
sudo xcode-select —install
brew doctor
brew update
brew upgrade
brew cleanup