NSInvalidArgumentException
-[UIApplication applicationWillTerminate:]: unrecognized selector sent to instance 0x552660
0 CoreFoundation 0x31785fd3 __exceptionPreprocess 114
1 libobjc.A.dylib 0x320118a5 objc_exception_throw 24
2 CoreFoundation 0x31789a77 -[NSObject(NSObject) doesNotRecognizeSelector:] 102
3 CoreFoundation 0x31788f15 ___forwarding___ 508
4 CoreFoundation 0x3171b680 _CF_forwarding_prep_0 48
5 default 0x1468e28d -[CommonToolsView onClickCellBtn:] 104
6 CoreFoundation 0x317107ad -[NSObject(NSObject) performSelector:withObject:withObject:] 24
7 UIKit 0x3017a829 -[UIApplication sendAction:to:from:forEvent:] 84
8 UIKit 0x3017a7c9 -[UIApplication sendAction:toTarget:fromSender:forEvent:] 32
9 UIKit 0x3017a79b -[UIControl sendAction:to:forEvent:] 38
10 UIKit 0x3017a4ed -[UIControl(Internal) _sendActionsForEvents:withEvent:] 356
11 UIKit 0x3017ab3b -[UIControl touchesEnded:withEvent:] 342
12 UIKit 0x30172b89 _UIGestureRecognizerUpdateObserver 2904
13 CoreFoundation 0x3175ba49 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 16
14 CoreFoundation 0x3175d475 __CFRunLoopDoObservers 412
15 CoreFoundation 0x3175e77b __CFRunLoopRun 854
16 CoreFoundation 0x317078eb CFRunLoopRunSpecific 230
17 CoreFoundation 0x317077f3 CFRunLoopRunInMode 58
18 GraphicsServices 0x33ac26ef GSEventRunModal 114
19 GraphicsServices 0x33ac279b GSEventRun 62
20 UIKit 0x3011e2a7 -[UIApplication _run] 402
21 UIKit 0x3011ce17 UIApplicationMain 670以上是ios4.1系统报的一个崩溃,请问有没有高手遇到过此问题,或有相关的想法,烦告之,不胜感激。
(其它系统基本无此问题;程序中没用到CommonToolsView)

解决方案 »

  1.   

     unrecognized selector sent to instance 没有那个方法名
    这种问题在debug环境下很容易就看到是哪句引起的
      

  2.   

    我是楼主。在debug环境中未能重现,未知操作。这是崩溃堆栈上传的信息。甚至怀疑是不是第三方软件(可能越狱安装)导致的,没有头绪。
      

  3.   

    [CommonToolsView onClickCellBtn:]
    全局搜索看看这个方法都在哪儿调用了,看看有没有可能找到线索
      

  4.   

    NSInvalidArgumentException
    -[UIApplication applicationWillTerminate:]: unrecognized selector sent to instance 0x552660看这段log,应该是程序退出时,调用applicationWillTerminate:方法时没找到。
      

  5.   

    在debug环境中未能重现,未知操作。
    多试试,依旧未能重现?
      

  6.   

    CommonTools这是 91桌面的库, 用户装了91桌面后,在4.x的设备上可能通过 “退出当前程序” 来直接退出当前程序,退出时,就会产生一条上面的crash log,是91桌面的bug