qt 5.7 + Xcode 8.1 +操作系统x El Capitan-无法解析'macosx'的SDK路径 [英] qt 5.7 + Xcode 8.1 + os x El Capitan - could not resolve SDK Path for 'macosx'

查看:95
本文介绍了qt 5.7 + Xcode 8.1 +操作系统x El Capitan-无法解析'macosx'的SDK路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Qt的新手,并且刚刚将其安装在运行OS X El Capitan的Mac上.但是不幸的是,当尝试运行任何示例应用程序时,我得到了could not resolve SDK Path for 'macosx'.

I'm new to Qt and have just installed it on my mac running OS X El Capitan. But unfortunately I'm getting could not resolve SDK Path for 'macosx' when trying to run any example app.

我花了一些时间试图找到解决方案,但没有任何效果.我尝试根据我在Xcode中找到的SDK版本(MacOSX.sdk和MacOSX10.12.sdk链接)更改qdevice.pri,但这没有帮助.

I spent some time trying to find solution, but nothing works. I tried changing qdevice.pri according to the SDK version that I found in Xcode (MacOSX.sdk and MacOSX10.12.sdk link) but it didn't help.

我的gcc设置是:

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

我正在运行OS X El Capitan,Xcode 8.1,Qt 5.7.

I'm running OS X El Capitan, Xcode 8.1, Qt 5.7.

推荐答案

似乎我发现了出现错误的原因.在我的Xcode's -> Preferences -> Locations -> Command Line Tools中,没有选择SDK.我选择了Xcode 8.1,现在看来可以正常工作.希望不会有其他问题.

Seems like I found the reason of getting errors. In my Xcode's -> Preferences -> Locations -> Command Line Tools there was no SDK selected. I have selected Xcode 8.1 and it seems to work ok now. Hope it won't be other problems.

这篇关于qt 5.7 + Xcode 8.1 +操作系统x El Capitan-无法解析'macosx'的SDK路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆