authService errors


#1

The example app works for me, but when I try to use it in my (react-native) app it errors on the [authService sdkAuth] call and never reaches the onMobileRTCAuthReturn method.

If I intentionally remove the assignment of the clientKey, it fails properly and outputs the error in the onMobileRTCAuthReturn method.

// authService.clientKey = kZoomSDKAppKey;

 

StackTrace:

 

2017-07-31 09:56:16.713 HappyOnboarding[8212:81189] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: '*** -[NSBundle initWithURL:]: nil URL argument’

*** First throw call stack:

(

0   CoreFoundation                      0x000000010dc3db0b __exceptionPreprocess + 171

1   libobjc.A.dylib                     0x000000010c31a141 objc_exception_throw + 48

2   CoreFoundation                      0x000000010dca6625 +[NSException raise:format:] + 197

3   Foundation                          0x000000010be13d10 -[NSBundle initWithURL:] + 87

4   Foundation                          0x000000010be13ca6 +[NSBundle bundleWithURL:] + 45

5   HappyOnboarding                     0x000000010a238892 main + 102562

6   libdispatch.dylib                   0x000000011322305c _dispatch_client_callout + 8

7   libdispatch.dylib                   0x00000001132089a1 dispatch_once_f + 503

8   HappyOnboarding                     0x000000010a238842 main + 102482

9   HappyOnboarding                     0x000000010a5a9917 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 1876634

10  HappyOnboarding                     0x000000010a722cc6 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 3421769

11  HappyOnboarding                     0x000000010a8abd7e _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5031681

12  HappyOnboarding                     0x000000010a87deb7 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 4843578

13  HappyOnboarding                     0x000000010a8d6305 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5205128

14  HappyOnboarding                     0x000000010a74b128 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 3586731

15  HappyOnboarding                     0x000000010a43a4b2 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 372277

16  HappyOnboarding                     0x000000010a21f084 -[ZoomManager sdkAuth] + 196

17  HappyOnboarding                     0x000000010a21efba -[ZoomManager startZoom] + 106

18  CoreFoundation                      0x000000010dbc5c6c __invoking___ + 140

19  CoreFoundation                      0x000000010dbc5b40 -[NSInvocation invoke] + 320

20  CoreFoundation                      0x000000010dbdd956 -[NSInvocation invokeWithTarget:] + 54

21  HappyOnboarding                     0x000000010b01c053 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 1923

22  HappyOnboarding                     0x000000010b07cca3 -[RCTBatchedBridge callNativeModule:method:params:] + 563

23  HappyOnboarding                     0x000000010b175426 __36-[RNSentry swizzleCallNativeModule:]_block_invoke_2 + 1782

24  HappyOnboarding                     0x000000010b07bf5e __33-[RCTBatchedBridge handleBuffer:]_block_invoke.477 + 1470

25  libdispatch.dylib                   0x00000001131fa4a6 _dispatch_call_block_and_release + 12

26  libdispatch.dylib                   0x000000011322305c _dispatch_client_callout + 8

27  libdispatch.dylib                   0x000000011320194f _dispatch_queue_serial_drain + 221

28  libdispatch.dylib                   0x0000000113202669 _dispatch_queue_invoke + 1084

29  libdispatch.dylib                   0x0000000113204ec4 _dispatch_root_queue_drain + 634

30  libdispatch.dylib                   0x0000000113204bef _dispatch_worker_thread3 + 123

31  libsystem_pthread.dylib             0x00000001135ba5a2 _pthread_wqthread + 1299

32  libsystem_pthread.dylib             0x00000001135ba07d start_wqthread + 13

)

libc++abi.dylib: terminating with uncaught exception of type NSException

(lldb)


#2

Seems that the crash occurred when your app load mobileRTC resources bundle, please check the bundle path and make sure that you loaded the bundle correctly.

Or, could you send us your project and we can help you to check it?

Thanks,

Robust


#3

Thanks Robert for getting me on the right track. 

 

For anyone else with this problem, here is the relevant SO link that explains how to load the mobileRTC resources bundle.

https://stackoverflow.com/questions/10247680/adding-resource-files-to-xcode