注册

环信注册APP时抛出异常

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSBundle initWithURL:]: nil URL argument'
*** First throw call stack:
(
0 CoreFoundation 0x0000000105db8c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000104f60bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000105db8b9d +[NSException raise:format:] + 205
3 Foundation 0x000000010403e7ca -[NSBundle initWithURL:] + 87
4 Foundation 0x000000010403e879 +[NSBundle bundleWithURL:] + 45
5 Cupid 0x0000000103261053 -[EMSDKConfigModel sdkBundle] + 146
6 Cupid 0x0000000103261158 -[EMSDKConfigModel initSDKConfigInfo] + 199
7 Cupid 0x0000000103260e8e -[EMSDKConfigModel init] + 79
8 Cupid 0x0000000103260fa7 __34+[EMSDKConfigModel shareSDKConfig]_block_invoke + 41
9 libdispatch.dylib 0x0000000107ba9614 _dispatch_client_callout + 8
10 libdispatch.dylib 0x0000000107b95881 dispatch_once_f + 565
11 Cupid 0x0000000103260f7c +[EMSDKConfigModel shareSDKConfig] + 46
12 Cupid 0x0000000103256f01 -[EMConfigManager init] + 145
13 Cupid 0x00000001032570fb __31+[EMConfigManager shareManager]_block_invoke + 41
14 libdispatch.dylib 0x0000000107ba9614 _dispatch_client_callout + 8
15 libdispatch.dylib 0x0000000107b95881 dispatch_once_f + 565
16 Cupid 0x00000001032570d0 +[EMConfigManager shareManager] + 46
17 Cupid 0x00000001031a9b2d -[EaseMob registerSDKWithAppKey:apnsCertName:otherConfig:] + 127
18 Cupid 0x00000001031a9a88 -[EaseMob registerSDKWithAppKey:apnsCertName:] + 53
19 Cupid 0x0000000103121970 -[GTCAppDelegate application:didFinishLaunchingWithOptions:] + 144
20 UIKit 0x00000001066e0748 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 240
21 UIKit 0x00000001066e1357 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2540
22 UIKit 0x00000001066e419e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
23 UIKit 0x00000001066e3095 -[UIApplication workspaceDidEndTransaction:] + 179
24 FrontBoardServices 0x000000010b52d5e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
25 CoreFoundation 0x0000000105cec41c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
26 CoreFoundation 0x0000000105ce2165 __CFRunLoopDoBlocks + 341
27 CoreFoundation 0x0000000105ce1f25 __CFRunLoopRun + 2389
28 CoreFoundation 0x0000000105ce1366 CFRunLoopRunSpecific + 470
29 UIKit 0x00000001066e2b02 -[UIApplication _run] + 413
30 UIKit 0x00000001066e58c0 UIApplicationMain + 1282
31 Cupid 0x0000000103121f8f main + 111
32 libdyld.dylib 0x0000000107bdd145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

引入环信SDK后,AppDelegate只添加了下面一行代码

[[EaseMob sharedInstance] registerSDKWithAppKey:@"goldentag#cupid" apnsCertName:@"Cupid_Apns_Dev"];

已邀请:
你将SDK整个文件夹拷贝进去了么
你解决了么,我也遇到同样的问题了

要回复问题请先登录注册