简体   繁体   English

iOS-应用程序在预配置的iPad上崩溃,在模拟器中正常运行

[英]iOS - app crashes on provisioned iPad, works ok in simulator

Here's the trace: 这是跟踪:

2012-10-17 14:46:42.280 Site Inspection Report[10446:907] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [384 nan]'
*** First throw call stack:
(0x38af92a3 0x3141897f 0x38af91c5 0x3113c953 0x3113c87b 0x3113c80b 0x3597eaf5 0x354bf 0x33f97 0x3599c595 0x359dcd79 0x359d8aed 0x35a1a1d1 0x3331d 0x359ddad9 0x359dd663 0x359d584b 0x3597dc41 0x3597d6d5 0x3597d123 0x3497a5a3 0x3497a1d3 0x38ace173 0x38ace117 0x38accf99 0x38a3febd 0x38a3fd49 0x359d4485 0x359d1301 0x330f5 0x33090)
libc++abi.dylib: terminate called throwing an exception

Looking around SO the usually suspect in this is returning something being divided by 0 or some table related issue. 环顾四周,通常对此的怀疑是返回除以0或某些与表相关的问题。 I don't do any division in the app but I do have a table, so that's going to be my starting point. 我没有在应用程序中进行任何划分,但是我有一张桌子,所以这将是我的出发点。 My question is, is there a way to decipher the message above that can provide a better starting point for debugging other than a 'blind squirrel' method? 我的问题是,除了“盲目的松鼠”方法以外,还有什么方法可以解密上面的消息,从而为调试提供更好的起点?

Thanks 谢谢

To get a better idea of the error and it's root cause add an exception breakpoint to get the line of code causing the error. 为了更好地了解错误及其根本原因,请添加异常断点以获取导致错误的代码行。 Select the breakpoints and in the bottom left of the Xcode window select the "+" and click on "Add Exception Breakpoint". 选择断点,然后在Xcode窗口的左下方选择“ +”,然后单击“添加异常断点”。 Click through the following alerts. 单击以下警报。 This works best with Xcode 4.5.1. 这在Xcode 4.5.1上效果最好。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM