xcode 4 中的重复设备方案 [英] duplicate device scheme in xcode 4

查看:22
本文介绍了xcode 4 中的重复设备方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在连接 iPad 后在 xcode 4 中查看我的方案时,我看到我的设备列出了两个方案(一个在下拉列表中项目名称的右侧,一个在它的正下方).当我选择 Edit Scheme 时,我看不到这些方案有任何明显的区别,但是当我尝试构建最顶层的方案时,我总是遇到错误,例如:

When I look at my schemes in xcode 4 after I connect my iPad, I see two schemes listed for my device (one to the right of my project name in the drop down list, and one right underneath it). I don't see any discernible difference in the schemes when I select Edit Scheme, but when I try to build the topmost one, I always get errors such as:

找不到NSXMLParserDelegate"的协议声明

Cannot find protocol declaration for 'NSXMLParserDelegate'

有谁知道为什么有两种设备方案,或者为什么最上面的一种会出现上述一种(而不是第二种)的错误?

Does anyone know why there are two device schemes or why the topmost one gets errors like the above one (but not the second one)?

推荐答案

我遇到了同样的问题.我在 Xcode.app 中找到了两个 SDK:

I had the same problem. I found two SDKs in my Xcode.app:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
iPhoneOS4.3.sdk
iPhoneOS5.1.sdk

我删除了旧的 SDK iPhoneOS4.3.sdk,现在一切正常.

I delete an old SDK iPhoneOS4.3.sdk, now everything is ok.

这篇关于xcode 4 中的重复设备方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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