# authService errors

**URL:** <https://devforum.zoom.us/t/authservice-errors/669>\
**Category:** iOS\
**Created:** [July 31, 2017, 4:58pm UTC](https://devforum.zoom.us/t/authservice-errors/669 "2017-07-31T16:58:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler\_Alves](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@Tyler\_Alves](https://devforum.zoom.us/u/Tyler_Alves)\
**Post date:** [July 31, 2017, 4:58pm UTC](https://devforum.zoom.us/t/authservice-errors/669/1 "2017-07-31T16:58:03Z")

</div>

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&nbsp;intentionally&nbsp;remove the assignment of the clientKey, it fails properly and outputs the error in the onMobileRTCAuthReturn method.

// authService.clientKey = kZoomSDKAppKey;

&nbsp;

StackTrace:

&nbsp;

**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 &nbsp; CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010dc3db0b \_\_exceptionPreprocess + 171**

**1 &nbsp; libobjc.A.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010c31a141 objc\_exception\_throw + 48**

**2 &nbsp; CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010dca6625 +[NSException raise:format:] + 197**

**3 &nbsp; Foundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010be13d10 -[NSBundle initWithURL:] + 87**

**4 &nbsp; Foundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010be13ca6 +[NSBundle bundleWithURL:] + 45**

**5 &nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a238892 main + 102562**

**6 &nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000011322305c \_dispatch\_client\_callout + 8**

**7 &nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001132089a1 dispatch\_once\_f + 503**

**8 &nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a238842 main + 102482**

**9 &nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a5a9917 \_Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 1876634**

**10&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a722cc6 \_Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 3421769**

**11&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a8abd7e \_Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5031681**

**12&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a87deb7 \_Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 4843578**

**13&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a8d6305 \_Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5205128**

**14&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a74b128 \_Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 3586731**

**15&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a43a4b2 \_Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 372277**

**16&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a21f084 -[ZoomManager sdkAuth] + 196**

**17&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010a21efba -[ZoomManager startZoom] + 106**

**18&nbsp; CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010dbc5c6c \_\_invoking\_\_\_ + 140**

**19&nbsp; CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010dbc5b40 -[NSInvocation invoke] + 320**

**20&nbsp; CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010dbdd956 -[NSInvocation invokeWithTarget:] + 54**

**21&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010b01c053 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 1923**

**22&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010b07cca3 -[RCTBatchedBridge callNativeModule:method:params:] + 563**

**23&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010b175426 \_\_36-[RNSentry swizzleCallNativeModule:]\_block\_invoke\_2 + 1782**

**24&nbsp; HappyOnboarding &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010b07bf5e \_\_33-[RCTBatchedBridge handleBuffer:]\_block\_invoke.477 + 1470**

**25&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001131fa4a6 \_dispatch\_call\_block\_and\_release + 12**

**26&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000011322305c \_dispatch\_client\_callout + 8**

**27&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000011320194f \_dispatch\_queue\_serial\_drain + 221**

**28&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000113202669 \_dispatch\_queue\_invoke + 1084**

**29&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000113204ec4 \_dispatch\_root\_queue\_drain + 634**

**30&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000113204bef \_dispatch\_worker\_thread3 + 123**

**31&nbsp; libsystem\_pthread.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001135ba5a2 \_pthread\_wqthread + 1299**

**32&nbsp; libsystem\_pthread.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001135ba07d start\_wqthread + 13**

**)**

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

**(lldb)**

---

<div class="post-metadata">

**Author:** ![Robust\_Hu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robust_hu/32/59_2.png) [@Robust\_Hu](https://devforum.zoom.us/u/Robust_Hu)\
**Post date:** [August 1, 2017, 1:39am UTC](https://devforum.zoom.us/t/authservice-errors/669/2 "2017-08-01T01:39:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tyler\_Alves](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@Tyler\_Alves](https://devforum.zoom.us/u/Tyler_Alves)\
**Post date:** [August 1, 2017, 8:54pm UTC](https://devforum.zoom.us/t/authservice-errors/669/3 "2017-08-01T20:54:14Z")

</div>

Thanks Robert for getting me on the right track.&nbsp;

&nbsp;

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

[https://stackoverflow.com/questions/10247680/adding-resource-files-to-xcode](https://stackoverflow.com/questions/10247680/adding-resource-files-to-xcode)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 24, 2021, 8:54pm UTC](https://devforum.zoom.us/t/authservice-errors/669/4 "2021-08-24T20:54:55Z")

</div>

Marking as solved.

-Tommy
