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
XCode can't find base SDK
提问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 .pbxproj
in your .xcodeproj
might help. In the XCBuildConfiguration
section there are values for SDKROOT
.
编辑.pbxproj
您.xcodeproj
可能会有所帮助。在该XCBuildConfiguration
部分中有 的值SDKROOT
。
回答by C Pirate
This question has more details on the situation: Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs
这个问题有更多关于情况的细节:Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs
回答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 设置,然后错误消失了。您需要修复“发布”、“调试”和其他任何问题。