LoginSignup
263
102

More than 5 years have passed since last update.

Mac OS Sierraにしたらgitコマンド、ターミナル上にエラーが出てしまった。

Last updated at Posted at 2016-09-27

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

263
102
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
263
102