applicationWillTerminate有問題嗎?Xcode iOS瞭解堆棧跟蹤
誰能告訴我如何分析有關異常的跟蹤或更多細節?
我試過矮人轉盤,但似乎沒有更多的細節。
dwarfdump -arch armv7 MyApp.app.dSYM --lookup 0x000034b3
告訴我
Line table file: 'main.m' line 14, column 18 with start address 0x00000000000034aa
這是
int retVal = UIApplicationMain(argc, argv, nil, nil);
這裏是堆棧跟蹤
-[UIApplication applicationWillTerminate:]: unrecognized selector sent to instance 0x27eed0
(null)
(
0 CoreFoundation 0x30df964f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x34914c5d objc_exception_throw + 24
2 CoreFoundation 0x30dfd1bf -[NSObject(NSObject) doesNotRecognizeSelector:] + 102
3 CoreFoundation 0x30dfc649 ___forwarding___ + 508
4 CoreFoundation 0x30d73180 _CF_forwarding_prep_0 + 48
5 CommonTools 0x089e441f -[ButtonEventOpt onProcClickEvent:state:frame:viewControl:] + 1662
6 CommonTools 0x089ead37 -[CommonToolsView onClickBtnEvent:] + 366
7 CoreFoundation 0x30d69571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
8 UIKit 0x30e77ec9 -[UIApplication sendAction:to:from:forEvent:] + 84
9 UIKit 0x30e77e69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
10 UIKit 0x30e77e3b -[UIControl sendAction:to:forEvent:] + 38
11 UIKit 0x30e77b8d -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 356
12 UIKit 0x30e78423 -[UIControl touchesEnded:withEvent:] + 342
13 UIKit 0x30e5d535 _UIGestureRecognizerSortAndSendDelayedTouches + 2200
14 UIKit 0x30e5cc01 _UIGestureRecognizerUpdateObserver + 696
15 CoreFoundation 0x30dd0a35 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 16
16 CoreFoundation 0x30dd2465 __CFRunLoopDoObservers + 412
17 CoreFoundation 0x30dd375b __CFRunLoopRun + 854
18 CoreFoundation 0x30d63ec3 CFRunLoopRunSpecific + 230
19 CoreFoundation 0x30d63dcb CFRunLoopRunInMode + 58
20 GraphicsServices 0x306e241f GSEventRunModal + 114
21 GraphicsServices 0x306e24cb GSEventRun + 62
22 UIKit 0x30e89d69 -[UIApplication _run] + 404
23 UIKit 0x30e87807 UIApplicationMain + 670
24 MyApp 0x000034b3 MyApp + 9395
25 MyApp 0x0000346c MyApp + 9324
)
嘗試在ButtonEventOpt和CommonToolsView的地址上使用dwarfdump。 – 2012-07-10 11:51:02
你確定沒有另一個「無法識別的選擇器」消息,其中有更多信息? – 2012-07-10 11:52:09
dwarfdump -arch armv7 MyApp.app.dSYM - lookup 0x089ead37 ----------------------------------- ----------------------------------- File:MyApp.app.dSYM/Contents/Resources/DWARF/MyApp(armv7) --------------------------------------------- ------------------------- 查找地址:0x00000000089ead37 in .debug_info ...未找到。 查找地址:0x00000000089ead37 in .debug_frame ...找不到。 – jeswang 2012-07-10 12:33:00