2012-03-21 51 views
2

我无法找到在我的iphone应用程序崩溃的原因。它只有当它在设备崩溃。但是当断点打开,它不会崩溃。崩溃后,组织者控制台中将打印以下日志。iPhone应用程序崩溃只在设备中,当用仪器分析

Mar 21 15:43:16 abc-Ss-iPhone com.apple.SpringBoard[15] <Notice>: CoreAnimation: timed out fence 1f4 

Mar 21 15:43:18 abc-Ss-iPhone ReportCrash[1771] <Notice>: Formulating crash report for process aaa[1770] 

Mar 21 15:43:18 abc-Ss-iPhone com.apple.launchd[1] (UIKitApplication:com.xxx.aaa[0x3989][1770]) <Warning>: (UIKitApplication:com.xxx.aaa[0x3989]) Job appears to have crashed: Segmentation fault: 11 

Mar 21 15:43:18 abc-Ss-iPhone SpringBoard[15] <Warning>: Application 'aaa' exited abnormally with signal 11: Segmentation fault: 11 

我已经把NSLog找到它在哪里crashing.it指向我在哪里重装tableview中的区域。

我做一些计算在BG线程,并使用下面的代码重新加载该表在主线程:

//////////////////////////////in bg thread 

if(needToReload){ 
    NSLog(@"calc end---table refresh called"); 
    [self performSelectorOnMainThread:@selector(updateTable) withObject:nil waitUntilDone:YES];    
} 
+1

您是在分析应用程序的发行版或调试版。如果发布,那么我相信你仍然应该能够解码crashlog。你有没有碰撞记录? (当您在XCode Organizer中打开该设备的设备日志时)? – Amiramix 2012-03-21 10:39:25

+0

好的,谢谢视图控制器提前发布 – sujith1406 2012-03-21 10:51:50

+0

你可以将它标记为答案 – sujith1406 2012-03-21 11:07:03

回答

3

你剖析应用程序的发布或调试版本?如果释放,那么我相信你仍然应该能够解码crashlog。请打开XCode Organizer - >设备日志查看该设备。