error: invalid active developer path missing xcrun

投稿者: | 2019年3月12日

flutterをインストールしたもののコマンドを実行したら下記のエラーが発生しました。

$ flutter --version
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Failed to send crash report. Server responded with HTTP status code 400

flutterがxcrunコマンドを実行できずにエラーになっています。
下記のコマンドでCommandLineToolsをインストールしました。

$ xcode-select --install
xcode-select: note: install requested for command line developer tools

改めてflutterコマンドを実行すると正常に表示されました。

flutter --version
Flutter 1.2.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8661d8aecd (3 weeks ago) • 2019-02-14 19:19:53 -0800
Engine • revision 3757390fa4
Tools • Dart 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA