【问题标题】:(Already did study but still) Qt Creator - Project ERROR: Xcode not set up properly(已经研究过,但仍然)Qt Creator - 项目错误:Xcode 未正确设置
【发布时间】:2017-01-29 03:24:57
【问题描述】:

其他人在 XCode8.0 上构建 Qt5.7 时遇到同样的问题,它给出了

Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.

我确实按照这个答案更改为 xcodebuild 并且我也同意了许可:

Qt Creator - Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild

但是我在构建时仍然遇到同样的错误。

另一件事是,我没有从 AppStore 下载 XCode,而是从 Apple Deleveloper 的网站下载了 XCode。我不允许在我的办公室登录 AppStore。

我可以单独构建 Xcode 应用程序。

有人有什么想法吗?

MacOS 10.12

XCode 8.0

Qt 5.7

【问题讨论】:

  • "我的办公室不允许登录 AppStore。"你的办公室正在阻止你做你的工作。你可能想和他们谈谈:/
  • c++ --version 是否在终端上工作?如果没有,sudo c++ --version 有效吗?如果没有,请尝试从磁盘实用程序修复权限,然后重试。
  • c++ --version 工作正常。是的,我需要和他们谈谈。但是今天我唯一能做的就是降级到7.3.1试一试。谢谢
  • 我的直觉是which c++ 不会显示 Apple 的编译器,或者会显示与 Qt Creator 最终使用的不同的编译器。 不要降级任何东西。 Qt Creator 所做的实际上并不多:它在项目上运行 qmake,然后是 make 或者 gmake。所有输出都可用。您应该能够为项目创建一个构建文件夹,cd 在那里,运行您选择的 Qt 的 qmake path/to/sources,然后运行 ​​make,它要么工作要么很明显出了什么问题。

标签: xcode qt qt-creator


【解决方案1】:

这似乎是一个已知的错误:

QTBUG-56004

问候 马可

【讨论】:

    猜你喜欢
    • 2016-02-17
    • 1970-01-01
    • 2018-04-29
    • 2017-01-22
    • 2019-03-08
    • 2017-12-20
    • 2014-09-10
    • 1970-01-01
    相关资源
    最近更新 更多