macos monterey 系统升级后 go build 错误
作者:互联网
错误
/usr/local/Cellar/go/1.16.3/libexec/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决方案
xcode-select --install
如果还是不行
sudo xcode-select --reset
参考地址:https://ma.ttias.be/mac-os-xcrun-error-invalid-active-developer-path-missing-xcrun/
标签:monterey,macos,xcode,invalid,xcrun,build,go,select,developer 来源: https://www.cnblogs.com/zdoubly/p/15477590.html