[MAC] OS X Xcode 8.x.x (8.2.1) and Qt 5.x (5.6 and 5.7) Project error: “Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild”

Solution for the following Qt Creator – Project ERROR: “Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild” Edit file: /<Qt.app path>/5.6/clang_64/mkspecs/features/mac/default_pre.prf Replace:  isEmpty($$list($$system(“/usr/bin/xcrun -find xrun 2>/dev/null”))): \ By:            isEmpty($$list($$system(“/usr/bin/xcrun -find xcodebuild 2>/dev/null”))): \