2011-11-04 120 views
2

說我有以下的(從TestFlight):如何閱讀堆棧跟蹤誤差崩潰報告

0 MyApp 0x000ef881 MyApp + 395393 
1 MyApp 0x000efc97 MyApp + 396439 
2 libsystem_c.dylib 0x37dc6539 _sigtramp + 48 
3 MyApp 0x00093e51 MyApp + 20049 
4 Foundation 0x338fd943 __NSFireDelayedPerform + 414 
5 CoreFoundation 0x36daea63 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14 
6 CoreFoundation 0x36dae6c9 __CFRunLoopDoTimer + 364 
7 CoreFoundation 0x36dad29f __CFRunLoopRun + 1206 
8 CoreFoundation 0x36d304dd CFRunLoopRunSpecific + 300 
9 CoreFoundation 0x36d303a5 CFRunLoopRunInMode + 104 
10 GraphicsServices 0x32a0bfed GSEventRunModal + 156 
11 UIKit 0x319e0743 UIApplicationMain + 1090 
12 MyApp 0x00091dcf MyApp + 11727 
13 MyApp 0x00091d58 MyApp + 11608 

這裏有一個較長的一個:

0 MyApp 0x00077881 MyApp + 395393 
1 MyApp 0x00077c97 MyApp + 396439 
2 libsystem_c.dylib 0x37e32539 _sigtramp + 48 
3 UIKit 0x31a206e7 -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 178 
4 UIKit 0x31a207a5 -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 368 
5 UIKit 0x31a207a5 -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 368 
6 UIKit 0x31a212df -[UIView(Internal) _addSubview:positioned:relativeTo:] + 334 
7 UIKit 0x31a2118b -[UIView(Hierarchy) addSubview:] + 30 
8 UIKit 0x31ab8d79 -[UITransitionView transition:fromView:toView:] + 980 
9 UIKit 0x31b0198f -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 4842 
10 UIKit 0x31b5b461 -[UIViewController _dismissViewControllerWithTransition:from:completion:] + 1732 
11 UIKit 0x31abeaf1 -[UIViewController dismissViewControllerWithTransition:completion:] + 756 
12 MyApp 0x00019e73 MyApp + 11891 
13 MyApp 0x0002c3c3 MyApp + 86979 
14 Foundation 0x3395d50f __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_0 + 18 
15 CoreFoundation 0x36e12577 ___CFXNotificationPost_block_invoke_0 + 70 
16 CoreFoundation 0x36d9e0cf _CFXNotificationPost + 1406 
17 Foundation 0x338d13fb -[NSNotificationCenter postNotificationName:object:userInfo:] + 66 
18 Foundation 0x338d2c2b -[NSNotificationCenter postNotificationName:object:] + 30 
19 MyApp 0x0002dd69 MyApp + 93545 
20 MyApp 0x00023a5b MyApp + 51803 
21 MyApp 0x0002425d MyApp + 53853 
22 MyApp 0x0001a5c1 MyApp + 13761 
23 UIKit 0x31bcdbc7 -[UIApplication _applicationOpenURL:payload:] + 270 
24 UIKit 0x31afaa51 -[UIApplication _callApplicationResumeHandlersForURL:payload:] + 104 
25 UIKit 0x31afa30d -[UIApplication _handleApplicationResumeEvent:] + 1496 
26 UIKit 0x31a1e961 -[UIApplication handleEvent:withNewEvent:] + 1080 
27 UIKit 0x31a1e3bf -[UIApplication sendEvent:] + 54 
28 UIKit 0x31a1dd2d _UIApplicationHandleEvent + 5808 
29 GraphicsServices 0x32a78e13 PurpleEventCallback + 882 
30 CoreFoundation 0x36e1a553 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38 
31 CoreFoundation 0x36e1a4f5 __CFRunLoopDoSource1 + 140 
32 CoreFoundation 0x36e19343 __CFRunLoopRun + 1370 
33 CoreFoundation 0x36d9c4dd CFRunLoopRunSpecific + 300 
34 CoreFoundation 0x36d9c3a5 CFRunLoopRunInMode + 104 
35 GraphicsServices 0x32a77fed GSEventRunModal + 156 
36 UIKit 0x31a4c743 UIApplicationMain + 1090 
37 MyApp 0x00019dcf MyApp + 11727 
38 MyApp 0x00019d58 MyApp + 11608 

現在我對這個錯誤是什麼很困惑?任何想法?或者,也許教程,這將幫助我如何以更人性化的方式閱讀這個?

回答

2

您需要在TestFlight中爲您的崩潰報告提供符號。轉到TestFlight中的Build Crashes頁面,您應該在頂部看到一個區域,放置一個壓縮的dSYM文件。進入Xcode 4並運行Organizer,您可以通過查看Window > Organizer菜單來完成此操作。點擊頂部的存檔按鈕。在您上傳到TestFlight的版本上右鍵單擊(Control +左鍵單擊),然後選擇在Finder中顯示。右鍵單擊* .xarchive文件並選擇顯示包裝內容。現在進入dSYMs目錄,並在.dSYM文件(例如MyApp.app.dSYM)右鍵單擊並選擇壓縮「MyApp.app.dSYM」

現在,將這個壓縮的dSYM文件拖動到要求它的TestFlight Build Crashes頁面的部分。這會將文件上傳到TestFlight,併爲該構建標記您的崩潰日誌。有時需要幾分鐘時間,但最終你的崩潰報告應該更有意義。

查找崩潰日誌中的堆棧框架,專門提及您的應用以拼湊發生的事情。接近尾聲時,您應該在崩潰日誌中看到您認識的消息或符號。如果你幸運的話,在這行結尾處應該有一個類文件的名稱和該文件中發生崩潰的行號。在開始查看系統崩潰和報告錯誤之前,您正在查找代碼運行的最後一個方法。使用崩潰報告中指定位置的代碼以及系統崩潰時報告的錯誤消息,您應該能夠確定原因或指向正確方向的內容。

+0

謝謝,我想當我上傳dSYM它只會解析新的傳入崩潰報告 – xonegirlz