-1

I want to use command go get,but it throws an exception

enter image description here

But i had installed the command line tools.

enter image description here

system:macOs sierra 10.12.6

go:1.9.2

EDIT: Error messages:

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
Baby.zhou
  • 511
  • 3
  • 21

1 Answers1

2

Try one of the recommendations of this question:

  • either select the XCode version you want to use (directly in XCode Preferences)
  • or try the suggested sudo xcode-select --switch path/to/Xcode.app
  • or try a sudo xcode-select --reset

See also "git push xcrun: error: active developer path does not exist" for an alternative approach.

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283