设备上的 iPod Touch 调试崩溃(EXC_BAD_INSTRUCTION、EXC_BAD_ACCESS)
我使用 iPod Touch 2G 作为开发设备,并使用 Xcode 3.1.3。当我尝试从调试器中的断点跟踪设备上的执行时,我收到 EXC_BAD_INSTRUCTION、EXC_BAD_ACCESS 或调试器无法反汇编某些内容的一些错误。同样的事情在 iPhone Simulator 上也能正常工作。以前我已经能够在其他一些 iPod Touch 2G 和 iPhone 3G 设备上从断点跟踪执行情况。
如果没有被断点中断,应用程序将正常工作。此外,在任何“步进”之前,我可以调查当前堆栈上的变量,它们的值似乎是正确的。
该设备是否可能存在某种缺陷,或者我应该更仔细地研究我的项目配置(以及我应该寻找什么)?
编辑:在使用项目配置后,我发现调试器在禁用“Compile for Thumb”选项后开始正常运行。现在的问题是为什么会这样?
I'm using iPod Touch 2G as a developement device with Xcode 3.1.3. When I try to trace the execution on the device from a breakpoint in the debugger I get EXC_BAD_INSTRUCTION, EXC_BAD_ACCESS or some error with debugger not being able do disassemble something. The same thing will work properly on iPhone Simulator. Previously I've been able to trace the execution from a breakpoint on some other iPod Touch 2G and iPhone 3G devices.
If not interrupted with a breakpoint the app will work properly. Also before any "stepping" I can investigate variables currently on the stack and their values seem to be correct.
Is it possible that the device is somehow flawed or should I look into my project configuration more closely (and what should I look for)?
EDIT: After playing with project configuration I've found that debugger starts to act normally after disabling "Compile for Thumb" option. The question now is why is it so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查您的构建设置,无论是 iOS 3.2 还是低于最新版本。我通过在项目设置中将 Base SDK 更改为最新的 iOS 4.0 解决了这个问题。
祝你好运
Check your build setting, whether it was in iOS 3.2 or lower than latest. This issue I have solved by changing the Base SDK to the latest iOS 4.0 in my project settings.
Good luck
这篇文章节省了我几个小时。这应该是您需要深入挖掘以了解根本问题所在的全部内容。 http://www.codza.com/how-to-debug- exc_bad_access-on-iphone
祝你好运!
This post saved me hours. It should be all you need to dig deep enough to see just what the root issue is. http://www.codza.com/how-to-debug-exc_bad_access-on-iphone
Good Luck!