0
1

More than 1 year has passed since last update.

【flutter】xcrun: error: invalid active developer pathエラーの対処法

Posted at

Macでflutterの環境構築中にこのエラーが出てきたので、対処法の備忘録です。

【エラー内容】

flutter doctor実行時に以下のようなエラーが出てきた。

$ flutter doctor

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Doctor summary (to see all details, run flutter doctor -v):

【原因】

MacOSをアップデートしたことによって、XCodeのxcrunコマンドが実行できなくなっている。
※筆者の場合はVenturaにアップデートしました。

【対処法】

Xcodeのコマンドラインのツールがあるので、それをインストールするために以下コマンドを実行する。

$ xcode-select --install

解決です!:sunny:

0
1
0

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