LoginSignup
0
0

More than 1 year has passed since last update.

xcodebuild で躓いた時の解決方法(備忘録)

Posted at

環境

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

いけたぽい!

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