# MobileRTC.shared().initialize(context) crashes the application (ios sdk)

**URL:** <https://devforum.zoom.us/t/mobilertc-shared-initialize-context-crashes-the-application-ios-sdk/9883>\
**Category:** iOS\
**Created:** [March 27, 2020, 3:08pm UTC](https://devforum.zoom.us/t/mobilertc-shared-initialize-context-crashes-the-application-ios-sdk/9883 "2020-03-27T15:08:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://devforum.zoom.us/u/igor)\
**Post date:** [March 27, 2020, 3:08pm UTC](https://devforum.zoom.us/t/mobilertc-shared-initialize-context-crashes-the-application-ios-sdk/9883/1 "2020-03-27T15:08:24Z")

</div>

**Description**  
When I use the method initialize, my application crashes.

**Which version?**  
Version [v4.6.15084.0206](https://github.com/zoom/zoom-sdk-ios/releases/tag/v4.6.15084.0206)

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
The code below lead me to this error:

```
let context: MobileRTCSDKInitContext = MobileRTCSDKInitContext()
context.domain = rtc_domain //rtc_domain is "zoom.us"
context.enableLog = true
context.locale = MobileRTC_ZoomLocale.default
MobileRTC.shared().initialize(context)

```

I am developing a Ionic Capacitor plugin for zoom.

The error:  
**2020-03-27 11:47:46.129785-0300 App[4987:1768846] \*\*\* Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: '**\* -[NSBundle initWithURL:]: nil URL argument’\*\*

\*\*\*\*\* First throw call stack:\*\*

**(0x187662a48 0x187389fa4 0x18795a934 0x18795a828 0x100eaa1a4 0x102676bd8 0x1026784c8 0x100eaa0cc 0x101187288 0x1015dcb88 0x1014fc2ac 0x101173080 0x101372d04 0x101371ff0 0x10136f954 0x101370ad0 0x100eb6614 0x100fdade4 0x100b2dedc 0x100b2daac 0x100b2ec54 0x1026757fc 0x102676bd8 0x102684c34 0x1875e05e4 0x1875db5d8 0x1875daadc 0x191560328 0x18b6d5ae0 0x100828b08 0x187464360)**

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

**Smartphone (please complete the following information):**

- Device: iphone 7
- OS: iOs 13.3
- Version

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 27, 2020, 11:02pm UTC](https://devforum.zoom.us/t/mobilertc-shared-initialize-context-crashes-the-application-ios-sdk/9883/2 "2020-03-27T23:02:00Z")

</div>

Hi [igor](https://devforum.zoom.us/u/igor),

Thanks for using Zoom SDK. The code snippet looks good. I think the issue might caused by Ionic Capacitor since our SDK does not support it. If you are able to configure how the Ionic Capacitor builds the app, please follow the instruction here [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration) to configure before building the app.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://devforum.zoom.us/u/igor)\
**Post date:** [March 28, 2020, 1:30pm UTC](https://devforum.zoom.us/t/mobilertc-shared-initialize-context-crashes-the-application-ios-sdk/9883/3 "2020-03-28T13:30:17Z")

</div>

Yeah, I forgot to include the bundle on my app. Thanks.

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/c3c29574c924d142183835c01a0133eb688d2ad7.jpeg)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 31, 2020, 1:24am UTC](https://devforum.zoom.us/t/mobilertc-shared-initialize-context-crashes-the-application-ios-sdk/9883/4 "2020-03-31T01:24:28Z")

</div>

Hi [igor](https://devforum.zoom.us/u/igor),

Glad to hear that it is working now. Happy Zooming!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:39pm UTC](https://devforum.zoom.us/t/mobilertc-shared-initialize-context-crashes-the-application-ios-sdk/9883/5 "2020-08-21T19:39:03Z")

</div>

Closed on August 21, 2020, 7:39pm UTC


