钛手机读取iPhone堆栈轨迹



我不知道如何为我的iPhone应用程序解释堆栈跟踪控制台输出。谁能告诉我一个入门或其他来源,可以帮助我破译它?下面是输出,以便您可以解释错误。我也有兴趣学习如何自己阅读它们。

[ERROR] The application has crashed with an unhandled exception. Stack trace:
0   CoreFoundation                      0x023a158c __exceptionPreprocess + 156
1   libobjc.A.dylib                     0x024f5313 objc_exception_throw + 44
2   CoreFoundation                      0x02359ef8 +[NSException raise:format:arguments:] + 136
3   Foundation                          0x007063bb -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
4   UIKit                               0x00989e8b -[UITableView(_UITableViewPrivate) _endCellAnimationsWithContext:] + 8420
5   UIKit                               0x00978d36 -[UITableView insertRowsAtIndexPaths:withRowAnimation:] + 56
6   mobiletributes-app                  0x0009ef7e -[TiUITableView dispatchAction:] + 7774
7   Foundation                          0x0068a94e __NSThreadPerformPerform + 251
8   CoreFoundation                      0x023828ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
9   CoreFoundation                      0x022e088b __CFRunLoopDoSources0 + 571
10  CoreFoundation                      0x022dfd86 __CFRunLoopRun + 470
11  CoreFoundation                      0x022df840 CFRunLoopRunSpecific + 208
12  CoreFoundation                      0x022df761 CFRunLoopRunInMode + 97
13  GraphicsServices                    0x041a71c4 GSEventRunModal + 217
14  GraphicsServices                    0x041a7289 GSEventRun + 115
15  UIKit                               0x00919c93 UIApplicationMain + 1160
16  mobiletributes-app                  0x0000473a main + 410
17  mobiletributes-app                  0x00003005 start + 53

代码执行是从下到上(wikipedia)。没有看到任何代码是很困难的。你在一个特定的索引上添加tableViewRow,它失败了:

[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] 
[UITableView(_UITableViewPrivate) _endCellAnimationsWithContext:]
[UITableView insertRowsAtIndexPaths:withRowAnimation:]

可能是在无效索引处添加行或在不存在的部分中添加行。

最新更新