Mac OS11.6 Big surのターミナルでX-Codeのバージョン確認ができません。
Ruby、Rails開発環境構築中で、rbenvのインストールのために、Homebrewを使おうとしています。
そのために、Command Line Tools for Xcodeをターミナル入力でインストール試みています。
user@○○○ ~ % xcode-select --install
でインストール行いました。
再度、
user@○○○ ~ % xcode-select --install
を実行すると下記エラー出るので、インストールはできているかと思います。
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
で、バージョン確認のため、
user@○○○ ~ % xcodebuild -version
実行すると下記エラーが表示されバージョン確認できません。
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
ググりましたが、初心者のため、文献読んで解決に繋げる事ができませんでした。
どなたかご教示よろしくお願い致します。
