2017-10-28 13 views
-1

に行くコマンドラインを使用することはできません私は、コマンドgo getを使用したいが、それはがMAC OS

enter image description here

例外がスローされますが、私はコマンドラインツールをインストールしていました。

enter image description here

システム:MacOSのシエラ10.12.6

GO:1.9.2

EDIT: エラーメッセージ:

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 
+1

sudoを使う必要はありません。また、スクリーンショットではなく、エラーメッセージをテキストとして追加してください。 – tkausl

+0

@tkausl申し訳ありませんが、私はコンテンツを編集しました。 –

答えて

1

の勧告の一つを試してみてくださいthis question

  • どちらかあなたは(XCodeの環境で直接)使用したいXCodeのバージョン
  • を選択するか、提案sudo xcode-select --switch path/to/Xcode.app
  • を試すかsudo xcode-select --reset

は別のアプローチのためにも、「git push xcrun: error: active developer path does not exist」を参照してくださいしてみてください。