LoginSignup
7
6

More than 5 years have passed since last update.

MacにQt5をインストールしてCreatorを起動 => ERRORとなりビルドができない時の対処方法

Last updated at Posted at 2016-10-15

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を再起動でビルドが出来る様になります。

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