当我输入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
Run Code Online (Sandbox Code Playgroud)