问题描述
[[EaseMob sharedInstance] registerSDKWithAppKey:@"easemob-demo#chatdemoui" apnsCertName:apnsCertName otherConfig:@{kSDKConfigEnableConsoleLogger:@YES}];运行到此处时程序崩掉。*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[EMDeviceManager _setupNetworkMonitor]: unrecognized selector sent to instance 0x7ff128624100'*** First throw call stack:(0 CoreFoundation 0x000000010ab53c65 __exceptionPreprocess + 1651 libobjc.A.dylib 0x000000010a740bb7 objc_exception_throw + 452 CoreFoundation 0x000000010ab5b0ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 2053 CoreFoundation 0x000000010aab113c ___forwarding___ + 9884 CoreFoundation 0x000000010aab0cd8 _CF_forwarding_prep_0 + 1205 ÈöèÂÖ¥Â≠¶ 0x00000001057b6ef5 -[EMDeviceManager init] + 1266 ÈöèÂÖ¥Â≠¶ 0x00000001057b6e5d __33+[EMDeviceManager sharedInstance]_block_invoke + 417 libdispatch.dylib 0x000000010b3cd614 _dispatch_client_callout + 88 libdispatch.dylib 0x000000010b3b9881 dispatch_once_f + 5659 ÈöèÂÖ¥Â≠¶ 0x00000001057b6e27 +[EMDeviceManager sharedInstance] + 4510 ÈöèÂÖ¥Â≠¶ 0x0000000105753211 -[EaseMob deviceManager] + 4611 ÈöèÂÖ¥Â≠¶ 0x0000000105753054 -[EaseMob init] + 9312 ÈöèÂÖ¥Â≠¶ 0x0000000105752fae +[EaseMob sharedInstance] + 7813 ÈöèÂÖ¥Â≠¶ 0x000000010534ed10 -[AppDelegate(EaseMob) easemobApplication:didFinishLaunchingWithOptions:] + 28814 ÈöèÂÖ¥Â≠¶ 0x0000000105165d0b -[AppDelegate application:didFinishLaunchingWithOptions:] + 269915 UIKit 0x000000010946f788 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 24016 UIKit 0x0000000109470397 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 254017 UIKit 0x00000001094731de -[UIApplication _runWithMainScene:transitionContext:completion:] + 134918 UIKit 0x00000001094720d5 -[UIApplication workspaceDidEndTransaction:] + 17919 FrontBoardServices 0x000000010dae45e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 2120 CoreFoundation 0x000000010aa8741c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 1221 CoreFoundation 0x000000010aa7d165 __CFRunLoopDoBlocks + 34122 CoreFoundation 0x000000010aa7c947 __CFRunLoopRun + 88723 CoreFoundation 0x000000010aa7c366 CFRunLoopRunSpecific + 47024 UIKit 0x0000000109471b42 -[UIApplication _run] + 41325 UIKit 0x0000000109474900 UIApplicationMain + 128226 ÈöèÂÖ¥Â≠¶ 0x0000000105162b6f main + 11127 libdyld.dylib 0x000000010b401145 start + 1)libc++abi.dylib: terminating with uncaught exception of type NSException
解决方案
你的lib文件夹下有几个.a 文件啊