报错:unrecognized selector sent to instance 0xad36750'问题排查
程序运行报这个错误:
[__NSCFString stringFromMD5]: unrecognized selector sent to instance 0xad36750
2014-04-23 10:27:54.571 Eating[1028:a0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString stringFromMD5]: unrecognized selector sent to instance 0xad36750'
*** First throw call stack:
(
0 CoreFoundation 0x029065e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x026898b6 objc_exception_throw + 44
2 CoreFoundation 0x029a3903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x028f690b ___forwarding___ + 1019
4 CoreFoundation 0x028f64ee _CF_forwarding_prep_0 + 14
5 Eating 0x001670fd +[BMSDKUDID BMSDKUDID] + 380
6 Eating 0x00134b82 _ZN7CAppMan18InitCommonMemCacheERKN9_baidu_vi8CVStringE + 2308
7 Eating 0x00134149 _ZN7CAppMan10InitAppManEP13BMKMapManager + 233
8 Eating 0x00149258 -[BMKMapManager init] + 338
9 Eating 0x00065839 -[AppDelegate application:didFinishLaunchingWithOptions:] + 505
10 UIKit 0x013f1355 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309
11 UIKit 0x013f1b95 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1536
12 UIKit 0x013f63a8 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
13 UIKit 0x0140a87c -[UIApplication handleEvent:withNewEvent:] + 3447
14 UIKit 0x0140ade9 -[UIApplication sendEvent:] + 85
15 UIKit 0x013f8025 _UIApplicationHandleEvent + 736
16 GraphicsServices 0x0373a2f6 _PurpleEventCallback + 776
17 GraphicsServices 0x03739e01 PurpleEventCallback + 46
18 CoreFoundation 0x02881d65 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
19 CoreFoundation 0x02881a9b __CFRunLoopDoSource1 + 523
20 CoreFoundation 0x028ac77c __CFRunLoopRun + 2156
21 CoreFoundation 0x028abac3 CFRunLoopRunSpecific + 467
22 CoreFoundation 0x028ab8db CFRunLoopRunInMode + 123
23 UIKit 0x013f5add -[UIApplication _run] + 840
24 UIKit 0x013f7d3b UIApplicationMain + 1225
25 Eating 0x000b715d main + 141
26 libdyld.dylib 0x02e45725 start + 0
)
libc++abi.dylib: terminating with uncaught exception of type NSException
根据问题提示应该是:调用函数出错了,那个对象没有那个函数。所以检查函数的书写。发现声明中有中文字符,所以不匹配造成的。