Qt5をダウンロード&インストールを行い「Qt Creator」を起動したら下のエラーが出てビルドができませんでした。
Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.
環境は、OS X 10.12、Xcode 8.0、Qt 5.7、QtCreator 4.1.0。
対処方法
- Qt5のインストールディレクトリ配下の[.インストール先ディレクトリ/Qt/5.7/clang_64/mkspecs/features/mac/default_pre.prf]ファイルを修正(14行目)
変更前
# Make sure Xcode is set up properly
isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))): \
変更後
# Make sure Xcode is set up properly
#isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))): \
isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \
Qtを再起動でビルドが出来る様になります。