コマンドラインからxcodeインストールディレクトリを取得するには、xcode-select -print-path
. 結果は次のようになります。/Applications/Xcode.app/Contents/Developer
最新の SDK フォルダーを取得するコマンドはありますか? 結果として次のようなものが必要です:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/
SDK の完全なパスを取得できない場合は、少なくとも SDK 番号が必要であり、パスの構築を試みます。