xcode iPhone:没有名称或路径为“iphoneos3.0”的 SDK

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

iPhone: There is no SDK with the name or path 'iphoneos3.0'

iphonexcode

提问by Codezy

A friend of mine just had to reinstall his OS (after power went down while updating) and when he installed Xcode he got this error. In the drop down that usually has device/simulator etc, it said 'missing'. I also noticed he had no developer folder on his machine as well. Anyone know why this might be?

我的一个朋友只需要重新安装他的操作系统(在更新时断电后),当他安装 Xcode 时,他收到了这个错误。在通常有设备/模拟器等的下拉菜单中,它说“丢失”。我还注意到他的机器上也没有开发人员文件夹。有谁知道这可能是为什么?

采纳答案by Codezy

I had him reinstall it with me there, and I noticed that the action for the developer tools, was install as opposed to upgrade, and it was grayed out so not sure how he would have been able to avoid that. In any event he reinstalled and got the same error when launching from the dock. He then launched from terminal and it worked fine... so somehow he got two installs or some weird scenario. In any event we found the .app that spotlight saw and put it on the dock and then it worked.

我让他和我一起在那里重新安装它,我注意到开发人员工具的操作是安装而不是升级,并且它是灰色的,所以不确定他如何能够避免这种情况。无论如何,他重新安装并从码头启动时遇到了同样的错误。然后他从终端启动并且运行良好......所以不知何故他得到了两次安装或一些奇怪的场景。无论如何,我们找到了聚光灯看到的 .app 并将其放在码头上,然后它就可以工作了。

回答by kw4m3n4

Tell me about it. Try this in XCode goto 'Project' Menu and select 'Edit Project Settings'. In the General tab, last but one item, select the drop down list 'Base SDK for all Configuration' There you can specify which SDK your project will target.

告诉我怎么回事儿。在 XCode 中尝试此操作,转到“项目”菜单并选择“编辑项目设置”。在 General 选项卡中,最后一项,选择下拉列表“Base SDK for all Configuration”,您可以在那里指定您的项目将针对哪个 SDK。

回答by Freeman

I had this problem after installing the Xcode that comes with Snow Leopard. To solve it I downloaded Xcode for iPhone. The Xcode that comes with Snow Leopard does not include the iPhone SDK.You have to be a registered iPhone developed to use it.

在安装了 Snow Leopard 附带的 Xcode 后,我遇到了这个问题。为了解决这个问题,我下载了 iPhone 的 Xcode。Snow Leopard 附带的 Xcode 不包含 iPhone SDK。您必须是已注册的 iPhone 开发者才能使用它。

回答by Thibault Martin-Lagardette

The system does not include the dev tools (and hence the /Developer folder) by default. He needs to re-install the dev-tools from his CD (or from developer.apple.com), and also re-install the iPhone SDK (only available on developer.apple.com).

默认情况下,系统不包含开发工具(因此不包含 /Developer 文件夹)。他需要从他的 CD(或从 developer.apple.com)重新安装开发工具,并重新安装 iPhone SDK(仅在 developer.apple.com 上可用)。

EDIT: I didn't see he re-installed XCode. Sounds weird. Make sure you re-install everything, and that you have the correct rights. However, is no issue is found by the installer and you still don't have a /Developer directoty, there might be something weird going on...

编辑:我没有看到他重新安装了 XCode。听起来怪怪的。确保您重新安装所有内容,并且您拥有正确的权限。但是,安装程序没有发现问题并且您仍然没有 /Developer 目录,可能会发生一些奇怪的事情......