pan*_*mic 4 c++ macos xcode qt
我是Qt的新手,刚刚在运行OS X El Capitan的mac上安装了它.但不幸的是,我could not resolve SDK Path for 'macosx'在尝试运行任何示例应用程序时都会遇到.
我花了一些时间试图找到解决方案,但没有任何作用.我尝试根据我在Xcode(MacOSX.sdk和MacOSX10.12.sdk链接)中找到的SDK版本更改qdevice.pri,但它没有帮助.
我的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
Run Code Online (Sandbox Code Playgroud)
我正在运行OS X El Capitan,Xcode 8.1,Qt 5.7.
pan*_*mic 12
好像我找到了出错的原因.在我看来Xcode's -> Preferences -> Locations -> Command Line Tools没有选择SDK.我选择了Xcode 8.1,现在似乎工作正常.希望不会出现其他问题.