自从Xcode 8安装以来,在创建Qt Console项目时出现此错误:
Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.
我已经重新安装了Qt和Qt Creator。
我读过很多类似的文章,运行xcode-select和东西。
这太疯狂了,无事可做,仍然是同样的错误。
我想知道Qt与Xcode到底有什么关系?
(这是Qt 5.7)
最佳答案
目前,直到Qt更新,这是一个修复程序:
步骤1 :
打开文件:
<Qt installation folder>/5.7/clang_64/mkspecs/features/mac/default_pre.prf
步骤2 :
更换:
isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))
带有:
isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null")))
关于qt - 从Xcode 8开始Qt不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39544135/