1
0

「checking macOS SDKROOT... xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)...」の対処法

Posted at

久々に個人で開発してみようと思い、過去に構築(荒廃)したpython環境をリセットした後、
pythonをインストールしようと思ったら以下のエラーが発生。

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

エラーを見た感じXcodeのコマンドラインツールが見つからないっぽい。
とりあえずググってみると以下の記事が。
どうやらMacOSをアップデートすると起きるらしい。
https://forums.developer.apple.com/forums/thread/673827

以下のコマンドを実行してXcodeのコマンドラインツールをインストールしたら直りました

xcode-select --install
1
0
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
1
0