XCode 找不到基础 SDK

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3034912/
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-09 03:26:04  来源:igfitidea点击:

XCode can't find base SDK

iphonexcode

提问by Moshe

XCode 3.2.3 Beta does not allow building for below 3.2.

XCode 3.2.3 Beta 不允许构建低于 3.2。

I opened a project that was made in an earlier XCode. For some reason, the base SDK is reported as missing even after changing it to 4.0. Other projects from earlier XCode do not have this issue.

我打开了一个用早期 XCode 制作的项目。出于某种原因,即使将基础 SDK 更改为 4.0,也会报告为缺失。早期 XCode 的其他项目没有这个问题。

What can I do?

我能做什么?

回答by Paul Hennekam

If you can't choose the SDK at the top left of x-code you have to first set the base SDK in the project settings. Project -> Edit Project Settings. Then choose the "General" tab. At the bottom you can choose "Base SDK for all Configurations:"

如果无法选择 x-code 左上角的 SDK,则必须先在项目设置中设置基础 SDK。项目 -> 编辑项目设置。然后选择“常规”选项卡。在底部,您可以选择“所有配置的基础 SDK:”

回答by Evadne Wu

Happy to hear it worked!

很高兴听到它起作用了!

Editing the .pbxprojin your .xcodeprojmight help. In the XCBuildConfigurationsection there are values for SDKROOT.

编辑.pbxproj.xcodeproj可能会有所帮助。在该XCBuildConfiguration部分中有 的值SDKROOT

回答by C Pirate

回答by Daniel O

I found I had to edit the Base SDK setting for each of the different build configurations, then the error went away. You need to fix "Release", "Debug" and any others.

我发现我必须为每个不同的构建配置编辑 Base SDK 设置,然后错误消失了。您需要修复“发布”、“调试”和其他任何问题。