即使已接受许可证,XCode 8错误“项目错误:Xcode设置不正确" [英] XCode 8 error "Project ERROR: Xcode not set up properly", even though the license has been accepted
问题描述
今天更新到Xcode 8后,我无法再构建Qt项目.尽管按照此答案的说明进行操作,但仍收到以下错误.
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.
项目错误:Xcode设置不正确.您可能需要确认 通过运行/usr/bin/xcodebuild获得许可协议.
Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.
如何解决?
推荐答案
按照以下说明进行操作后,我设法获得了使用XCode 8/MacOX Sierra构建的capybara-webkit(使用QT)(在此处找到:
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)
- 移动到安装Qt的文件夹.
- 在文本编辑器中打开Qt_install_folder/5.7/clang_64/mkspecs/features/mac/default_pre.prf中的文件
-
用文本查找行(对我来说是第15行):
- Move to the folder where you install Qt.
- Open in a text editor the file at Qt_install_folder/5.7/clang_64/mkspecs/features/mac/default_pre.prf
Find the line with text (for me it was line 15):
isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))): \
将行替换为:
isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \
保存并保存重新编译
Save & re-compile
这篇关于即使已接受许可证,XCode 8错误“项目错误:Xcode设置不正确"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!