XCode 8 error "Project ERROR: Xcode not set up properly", even though the license has been accepted

I can no longer build Qt project after updating to Xcode 8 today. I get the following error despite having followed the instructions from this answer.

Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.

How to fix it?


I managed to get capybara-webkit (which uses QT) built with XCode 8 / MacOX Sierra after following these instructions (found here: https://forum.qt.io/topic/71119/project-error-xcode-not-set-up-properly/7)

  1. Move to the folder where you install Qt.
  2. Open in a text editor the file at Qt_install_folder/5.7/clang_64/mkspecs/features/mac/default_pre.prf
  3. Find the line with text (for me it was line 15):

    isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))): \

    Replace line with:

    isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \
  4. Save & re-compile

A cleaner solution

cd /Applications/Xcode.app/Contents/Developer/usr/bin/
sudo ln -s xcodebuild xcrun

Run MaintenanceTool in Qt directory and update to version 5.8

Need Your Help

OpenGL 3.x context creation using SDL2 on OSX (Macbook Air 2012)

macos opengl sdl

As far as I'm aware, the Macbook Air 2012 supports OpenGL 3.2. When using SDL 2.0 to create the OpenGL context, however, the context is only opengl version 2.1.

MySQLDataReader retrieving Null value problem in c#

c# mysql mysqldatareader

I am currently working on a C# project that will export MySQL Data. The export is for any database within the server so I am not going to know what fields and the data types that are in the table a...