今天更新到Xcode 8后,我再也不能再构建Qt项目了。尽管遵循了
this answer中的说明,但我仍然收到以下错误信息。
Project ERROR: Xcode not set up properly. You may need to confirm the
license agreement by running /usr/bin/xcodebuild.
如何解决?
解决方法
我按照这些说明(在这里找到:
https://forum.qt.io/topic/71119/project-error-xcode-not-set-up-properly/7),设法使用XCode 8 / MacOX Sierra构建的capybara-webkit(使用QT)
>移动到安装Qt的文件夹。
>在文本编辑器中打开文件在Qt_install_folder / 5.7 / clang_64 / mkspecs / features / mac / default_pre.prf
>找到文本行(对我来说,这是第15行):
isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))): \
替换行:
isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \
>保存&重新编译