Help us understand the problem. What is going on with this article?

macOS Catalinaにしたら、PhpStormでgitのエラーが出た

唐突なPhpStormのgitエラー

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

いろいろ調べてみると、xcode-select --installが必要とのこと。

やってみる -> 正常終了 -> エラー変わらず。

さらに調べて

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

が出てきたけど、そもそもXcodeを最近アップデートしてなかったので、AppStoreからアップデート。

その後

sudo xcodebuild -license

して、最後まで読んでagreeとタイピング&エンター

んでPhpStorm再起動したら直りました。

誰かの助けになれば幸いです。

Nerosui777
富山県のWEBプログラマー プログラム教育にも力を入れてます。
https://floatingweed.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした