没有名称或路径为“iphoneos4.0”的SDK。 [英] There is no SDK with the name or path "iphoneos4.0"

查看:61
本文介绍了没有名称或路径为“iphoneos4.0”的SDK。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了一个UICatalog示例并运行它。当我编译它时,它显示失败的消息:没有名称或路径为iphoneos4.0的SDK。我发现UICatalog目标的基础SDK是iphone Device 4.0(缺失)。如何解决这个问题并运行它。

I download a sample of UICatalog and run it.When I compile it ,it shows the failed message:There is no SDK with the name or path "iphoneos4.0".I find the "Base SDK" of UICatalog's Targets is iphone Device 4.0(missing).How can I solve this question and run it.

谢谢!

推荐答案

在Groups& Files中选择项目的根级别。它是蓝色的。然后按命令-I获取其信息。

Select the root level of the project, in "Groups & Files". It's blue. Then hit command-I to get its Info.

从信息窗口顶部的分段控制器中选择构建。在该面板的第一部分中,您将看到Base SDK作为前几行选项之一。选择你在那里找到的SDK的最新版本,然后关闭窗口以保存你的选项。

Pick "Build" from the segmented controller at the top of the info window. In the first section of that panel you'll see Base SDK as one of the first few lines of options. Select the latest version of the SDK you find in there, and close the window to save your options.

构建并运行项目,你应该对转发。

Build-and-run the project, and you should be good to go.

编辑,因为我从评论中看到人们发现这个答案的问题与OP的问题略有不同,所以这里还有另外一件事要尝试。也可以选择iOS设备作为构建目标。如果是这样,如果您真正想要的是它启动到模拟器中,请选择模拟器。

EDIT, because I see from the comments that people are finding this answer who have a slightly different question than the OP's, so here's one other thing to try. It could also be you have "iOS Device" selected as your build target. If so, and if what you really want is for it to launch into the simulator, select "Simulator" instead.

这篇关于没有名称或路径为“iphoneos4.0”的SDK。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆