简体   繁体   English

升级到Xcode 3.2.5后“Base SDK Missing”

[英]“Base SDK Missing” after upgrading to Xcode 3.2.5

So I took the step upgrading to Xcode 3.2.5 (iPhone SDK 4.2) and now I cannot run to device. 所以我采取了升级到Xcode 3.2.5(iPhone SDK 4.2)的步骤,现在我无法运行到设备。 I always see this now in the dev environment: 我现在总是在开发环境中看到这个:

替代文字

In my current projects, when going to the project settings I can only set the Base SDK to iOS 4.2 but this doesn't change the "Base SDK Missing" problem. 在我目前的项目中,当进入项目设置时,我只能将Base SDK设置为iOS 4.2,但这不会改变“Base SDK Missing”问题。 :/ :/

I can however deploy to the simulator, and change which version I want the simulator to load as. 然而,我可以部署到模拟器,并更改我希望模拟器加载的版本。

Does anyone know how to fix this? 有谁知道如何解决这一问题?

If I create a new project I don't get this... 如果我创建一个新项目,我不会得到这个......

Thanks 谢谢

I solved this problem, by doing this: 通过这样做我解决了这个问题:

Project->Edit Project Settings->Build->Base SDK->Latest SDK (4.2)
Project->Edit Project Settings->Build->iOS Target Deployment->iOS 4.2

Project->Edit Active Target (myTarget)->Base SDK->Latest SDK (4.2)
Project->Edit Active Target (myTarget)->iOS Target Deployment->iOS 4.2

And, If you still have problems: 而且,如果你还有问题:

Click the box that says base SDK missing, and select: 单击基本SDK缺失的框,然后选择:

Simulator -> Debug

That should do it. 应该这样做。

You can double-click or right-click on your target and pull up it's Info. 您可以双击或右键单击目标并提取其信息。 Click on the build tag and look for the setting for Base SDK. 单击构建标记并查找Base SDK的设置。 You probably want this set to Latest iOS, which is a new option and should prevent this from happening the next time you upgrade. 您可能希望将此设置设置为最新iOS,这是一个新选项,可以防止在下次升级时发生这种情况。

However, you might be better off doing this at the Project level, by selecting Project -> Edit Project Settings and following the steps above. 但是,您可能最好在项目级别执行此操作,方法是选择项目 - >编辑项目设置并按照上述步骤操作。 You can also select the general tab under the project settings and set your Base SDK with the "Base SDK for all Configurations" drop down. 您还可以选择项目设置下的常规选项卡,并使用“所有配置的基本SDK”下拉列表设置Base SDK。 That has the advantage of fixing a problem that sometimes crops up with your linked frameworks (if they are all in red in the sidebar, you have the problem). 这样做的好处是可以解决有时会出现链接框架的问题(如果它们在侧边栏中都是红色的,那么就有问题)。

我发现,在Project和Target Build信息设置中将Base SDK设置为最新iOS后,使用Xcode 3.2.5,退出并重新启动Xcode会自动删除select小部件中的“Base Missing SDK”消息。

Here's what you have to do: 这是你要做的:

Double click on the main project icon to open properties. 双击主项目图标以打开属性。 Under the General tab, set "Base SDK for all configurations" to "Latest iOS". 在“常规”选项卡下,将“所有配置的基本SDK”设置为“最新iOS”。 Under Build tab, set Base SDK to the same thing. 在Build选项卡下,将Base SDK设置为相同的东西。

Repeat this step for all framework projects under your main project. 对主项目下的所有框架项目重复此步骤。

Finally, and this is the bit I was missing for an annoying week or so, double-click your TARGET (under "Targets") and perform the same steps. 最后,这是我在烦人的一周左右失踪的那一点,双击你的TARGET(在“目标”下)并执行相同的步骤。

Things should be back to normal - and since "Latest iOS" should hopefully keep you updated with each new SDK released, you won't have to go through all that again. 事情应该恢复正常 - 并且由于“最新的iOS”应该会随着每个新SDK的发布而更新,所以你不必再次完成所有这些。

Finally - restart Xcode or otherwise cause the project file to be reloaded. 最后 - 重新启动Xcode或以其他方式重新加载项目文件。

Unless you work with people who haven't upgraded yet and persist in submitting changed project files. 除非您与尚未升级的人一起工作并坚持提交更改的项目文件。 Apply a similar penalty as you would for breaking a build until they get it. 应用类似的惩罚,就像破坏构建一样,直到他们得到它。 :-) :-)

RESTarting是必须的人..如果你不会重新启动你的项目(只关闭项目,然后重新打开它)你会看到同样的事情“基本sdk缺失”...我也有同样的麻烦..但重新启动工作。 。

I do not think you need to restart xCode, nor reopen your projects. 我认为您不需要重新启动xCode,也不需要重新打开您的项目。 Try this: 试试这个:

In the main project window, select Option-Cmd-E, choose build and "latest ios...". 在主项目窗口中,选择Option-Cmd-E,选择build和“latest ios ...”。

Close the build window. 关闭构建窗口。

In the main project window, option-click the dropdown for Base SDK and you should see the latest build available. 在主项目窗口中,选择 - 单击Base SDK的下拉列表,您应该看到可用的最新版本。

Select that and you should be good to go. 选择那个,你应该好好去。

Takes 5 seconds. 需要5秒钟。 I hope this helps.. 我希望这有帮助..

This works fine for me. 这对我来说很好。 Just don't forget to restart Xcode. 只是不要忘记重启Xcode。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM