コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Mac】xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

概要

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
  • Xcode をインストール済みの Mac に homebrew をインストールしたところ
    xcodebuild 実行時に上記のエラーが出るようになった

f:id:baba_s:20200512121827p:plain

  • Xcode の Preferences から「Locations」タブを選択して
    空白になっている「Command Line Tools」を設定したら解決した

参考サイト様