【发布时间】:2015-12-30 00:51:20
【问题描述】:
当我输入 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
【问题讨论】:
-
对于Xcode 11.3,需要下载以下链接。 download.developer.apple.com/Developer_Tools/…