[英]App crashes on simulator but works fine in device after upgrading to lion
My app is working fine on simulator all the while until i upgraded to OS Lion & xcode Version 4.1. 在升级到OS Lion&xcode版本4.1之前,我的应用一直在模拟器上运行良好。
Now I got the error below. 现在我得到下面的错误。
EXC_BAD_ACCESS warning: Unable to restore previously selected frame. EXC_BAD_ACCESS警告:无法恢复先前选择的帧。
But It's working fine on iPhone. 但它在iPhone上运行良好。 Appreciate for any suggestion ...
感谢任何建议...
If you're getting an EXC_BAD_ACCESS error that means you're doing something wrong and dealing with either released or uninitialized objects. 如果收到EXC_BAD_ACCESS错误,则表示您做错了什么,正在处理已发布或未初始化的对象。 These errors don't always show up, and when they do, they show up well after the actual infraction.
这些错误并不总是会显示出来,当它们出现时,它们会在实际违规之后很好地显示出来。 My point is this, just because its working fine on the iPhone doesn't mean the error does not exist.
我的意思是,仅因为它在iPhone上正常工作并不意味着该错误不存在。
Try enabling NSZombieEnabled 尝试启用NSZombieEnabled
This should give you more details about the object you're trying to access and help you debug the issue. 这应该为您提供有关您尝试访问的对象的更多详细信息,并帮助您调试问题。
尝试进入模拟器上的键盘设置,然后关闭所有功能。
Did you uninstall Xcode via the command line before you installed the new version? 在安装新版本之前,是否通过命令行卸载了Xcode? This is a crucial step that many seem to be missing.
这是许多人似乎缺少的关键步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.