我正在跑步:
-OS 10.10.5
-QT 5.8.0
-Xcode? (我在finder上找不到文件夹)
我刚刚下载了QT 5.8 for macOS的离线安装程序并继续安装它,之后他们告诉我我已经下载了他们在安装程序中提供的Xcode,安装完成后,我运行QT进行测试并显示以下消息:Project ERROR:无法解析'macosx'的SDK路径
我一直在寻找答案,到目前为止我做到了这一点:
在终端中输入
<p>
</p>
<script>
if (!("scramble" in Array.prototype)) {
Object.defineProperty(Array.prototype, "scramble", {
enumerable: false,
value: function() {
var o, i, ln = this.length;
while (ln--) {
i = Math.random() * (ln + 1) | 0;
o = this[ln];
this[ln] = this[i];
this[i] = o;
}
return this;
}
});
}
var quiz = [{
"question": ["What is the full form of IP?","hi"],
"choices": ["Internet Provider", "Internet Port", "Internet Protocol" , "Other"],
"correct": "Other"
}, {
"question": "Who is the founder of Microsoft?",
"choices": ["Bill Gates", "Steve Jobs", "Steve Wozniak" , "Martin Shaba"],
"correct": "Bill Gates"
}, {
"question": "What was your first dream?",
"choices": ["8 bits", "64 bits", "1024 bits"],
"correct": "8 bits"
}, {
"question": "The C programming language was developed by?",
"choices": ["Brendan Eich", "Dennis Ritchie", "Guido van Rossum"],
"correct": "Dennis Ritchie"
}, {
"question": "What does CC mean in emails?",
"choices": ["Carbon Copy", "Creative Commons", "other"],
"correct": "Carbon Copy"
}];
quiz.forEach(q => q.choices.scramble());
document.write(quiz[prompt("Which one?")].choices);
</script>
或尝试此解决方案:
Error: Could not resolve SDK path for 'macosx10.8'
并且它对我不起作用,我认为我没有Xcode,因为我在查找器上找不到任何Xcode文件夹,但是如果我没有Xcode,QT就不能正常工作?
请耐心等待我的回答,我刚从哥哥那里拿了一台macbook笔记本大约2个月,我通常使用的是Windows 10。
答案 0 :(得分:1)
是。如果您没有安装Xcode,Qt会提示错误,&#34;项目错误:无法解析&#39; macosx&#39; &#34 ;. 我确实遇到了这个问题并安装了Xcode 7(因为我们可以在Mac OS 10.10.5中安装的最高版本是Xcode 7.2.1)。这对我有用。