xcode 无法解析“macosx10.10”的 SDK 路径

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32642109/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:50:28  来源:igfitidea点击:

Could not resolve SDK path for 'macosx10.10'

xcodeqtosx-yosemite

提问by Galaxy

I updated my Xcode last night, and found I cannot run my code now. It shows: error: Could not resolve SDK path for 'macosx10.10'

我昨晚更新了我的 Xcode,发现我现在无法运行我的代码。表明:error: Could not resolve SDK path for 'macosx10.10'

My Xcode is version 7.0. And I'm using Qt on OS X 10.10.5. I didn't change anything, just updated the Xcode from App store.

我的 Xcode 是 7.0 版。我在 OS X 10.10.5 上使用 Qt。我没有改变任何东西,只是从 App Store 更新了 Xcode。

Does anyone know how to fix it?

有谁知道如何修理它?

采纳答案by Galaxy

I think I found a solution from https://stackoverflow.com/questions/26320677/error-could-not-resolve-sdk-path-for-macosx10-8`.

我想我从https://stackoverflow.com/questions/26320677/error-could-not-resolve-sdk-path-for-macosx10-8`找到了一个解决方案。

I changed it to QMAKE_MAC_SDK = macosx10.11and it works. But I don't know why here should be 10.11, as I'm using OS X 10.10.5. I just guess that the Xcode updated yesterday is used for new version of Mac OS called OS X el capitan.

我将其更改为QMAKE_MAC_SDK = macosx10.11并且有效。但我不知道为什么这里应该是 10.11,因为我使用的是 OS X 10.10.5。我只是猜测昨天更新的 Xcode 用于名为 OS X el capan 的新版 Mac OS。