Mac OSをSierraにしてRuby On Railsの開発をしてたら、 下記の様にエラーが出てしまった。
$ git status
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
どうやらCommandLineToolsが抜けってしまってないようです。
とりあえず、下記をそのままsafariで検索かける。
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ただターミナル上でxcode-selectをインストールすればいいと
$ xcode-select --install
xcode-select: note: install requested for command line developer tools
$ git status
On branch master
nothing to commit, working directory clean
動いた!!!
こちらに関して、ブログで取りまとめてます!
参考にして頂けたら幸いです。
http://www.papa-programing.jp/?page=1477825200