環境
Mac
Ventura
やったこと
Xcode コマンドラインツールの version を確認しようとするが、以下の error が表示される。
$ xcodebuild -version
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Path がおかしいのかも?と思い、Path を確認。
$ xcode-select -p
/Library/Developer/CommandLineTools
以下に変更する。
$ sudo xcode-select -s /Applications/Xcode.app
再度 version を確認
$ xcodebuild -version
Xcode 14.2
Build version 14C18
いけたぽい!