我想使用命令go get
,但它会引发异常
但我安装了命令行工具。
系统:macOs sierra 10.12.6
转到:1.9.2
修改 错误消息:
go get github.com/hashicorp/go-plugin
# cd .; git clone https://github.com/hashicorp/go-plugin
/Users/famoss/files/goworkspace/src/github.com/hashicorp/go-plugin xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
package github.com/hashicorp/go-plugin: exit status 1
答案 0 :(得分:2)
尝试this question的其中一项建议:
sudo xcode-select --switch path/to/Xcode.app
sudo xcode-select --reset
另请参阅“git push xcrun: error: active developer path does not exist”。