Project Error:xcode not set up properly. Need to confirm the license agreement by running/
>= Xcode 8
In Xcode 8, as Bruce said, this happens when Qt tries to find when xcrun
it should is looking for xcodebuild
.
Step 1:
Open the file:
Qt_install_folder/5.7/clang_64/mkspecs/features/mac/default_pre.prf
Step 2:
Replace:
isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))
With:
isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null")))
~> Xcode 8
Before Xcode 8, this problem occurs when command line tools was installed after Xcode is installed. What happens are the Xcode-select
developer directory gets pointed to /Library/Developer/CommandLineTools
.
Step 1:
Point to the Xcode-select
correct Xcode Developer directory with the command:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Step 2:
Confirm the license agreement with the command:
xcodebuild -license
This would prompt you to read through the license agreement.
Enter to agree
accept the terms.
QT error under Mac, Xcode configuration workaround