更新到 Xcode 4.2,无法在 4.3 模拟器中运行项目
我刚刚使用 iOS 5 更新到 Xcode 4.2,我的旧项目在 iPhone iOS 5 模拟器上运行正常,但我无法在 iOS 4.3 模拟器或 iPhone 3G 4.2.1 中运行它。应用程序崩溃。
我能做什么?我开始认为更新不是一个好主意!
对不起我的英语。
程序接收信号:SIGABRT
控制台: 2011-11-01 09:14:05.555 Romanos[1351:f203] * 由于未捕获的异常“NSUnknownKeyException”而终止应用程序,原因:“[ setValue:forUndefinedKey:]:此类不是键值关键数字的编码兼容。”
I ´ve just updated to Xcode 4.2 with iOS 5 and my older projects run OK on iPhone iOS 5 simulator , but I can´t run it on iOS 4.3 simulator or in my iPhone 3G 4.2.1. The application crash.
What can I do?, I´m starting to think it was not a good idea to update!
sorry for my english.
Program received signal: SIGABRT
Console:
2011-11-01 09:14:05.555 Romanos[1351:f203] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key numero.'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这通常意味着您的 XIB 容器之一对名为
numero
的IBOutlet
的引用不再存在(或已重命名,或在错误的对象上引用)。您需要从 XIB 中查找并删除该引用。我会首先查看 RomanosViewController 的 XIB。 :)
That normally means that one of your XIBs container a reference to an
IBOutlet
callednumero
that no longer exists (or has been renamed, or is being referenced on the wrong object). You need to find and delete the reference from your XIB.I'd look at RomanosViewController's XIB first. :)
这可能是 Benjie Gillam 所说的,但也要确保您的视图控制器设置为正确的类。
您可以检查界面生成器。例如,单击选项卡栏应用程序中的文件所有者或选项卡的视图控制器,然后查看身份检查器(命令 + 选项 + 3)。您应该选择视图控制器的类。
It could be what Benjie Gillam said, but also make sure your view controllers are set to the correct classes.
You can check in the interface builder. For example, click on File's Owner or the tab's view controller in a Tab Bar app, and look at the Identity Inspector (command + option + 3). You should select the view controller's class.