# Zoom iOS SDK initialization throws exception

**URL:** <https://devforum.zoom.us/t/zoom-ios-sdk-initialization-throws-exception/11684>\
**Category:** iOS\
**Created:** [April 6, 2020, 11:08pm UTC](https://devforum.zoom.us/t/zoom-ios-sdk-initialization-throws-exception/11684 "2020-04-06T23:08:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ar3396](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@ar3396](https://devforum.zoom.us/u/ar3396)\
**Post date:** [April 6, 2020, 11:08pm UTC](https://devforum.zoom.us/t/zoom-ios-sdk-initialization-throws-exception/11684/1 "2020-04-06T23:08:39Z")

</div>

**Description**  
I integrated the latest Zoom iOS SDK into our iOS project (Swift). When I try to initialize the SDK, I get an exception. On printing the exception message, this is what I get:

Message in console -\> [NSBundle initWithURL:]: nil URL argument

This is my code

```auto
let context = MobileRTCSDKInitContext()
        context.domain = "zoom.us"
        context.enableLog = true
        context.locale = .default
        context.appGroupId = ""
        let initSuccess = MobileRTC.shared().initialize(context)

```

**Which version?**  
SDK Version v4.6.15805.0403

**To Reproduce(If applicable)**  
See code above

**Screenshots**  
N/A

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

- Device: iPhone 10
- OS: iOS 13.0
- Version of SDK -\> v4.6.15805.0403

**Additional context**  
N/A

---

<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:** [April 6, 2020, 11:46pm UTC](https://devforum.zoom.us/t/zoom-ios-sdk-initialization-throws-exception/11684/2 "2020-04-06T23:46:33Z")

</div>

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

Thanks for the post. Did you import the SDK in your project by following the instructions 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)? I was able to successfully initialized the SDK and start a meeting with the SDK you are using.

Below is the code that I am using.

```auto
 let context = MobileRTCSDKInitContext();
        context.domain = "https://zoom.us";
        context.enableLog = true;
        context.locale = .default;
        context.appGroupId = "";
        MobileRTC.shared().initialize(context);
        
        let authService = MobileRTC.shared().getAuthService();
        authService?.delegate = self;
        authService?.clientKey = "SDK key";
        authService?.clientSecret = "SDK secret";
        authService?.sdkAuth();

```

If you are able to reproduce this with our demo app, please let me know so we could further investigate.

Thanks!

---

<div class="post-metadata">

**Author:** ![ar3396](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@ar3396](https://devforum.zoom.us/u/ar3396)\
**Post date:** [April 7, 2020, 1:22pm UTC](https://devforum.zoom.us/t/zoom-ios-sdk-initialization-throws-exception/11684/3 "2020-04-07T13:22:03Z")

</div>

Ah it’s my bad. I think this was because I didn’t perform the `Copy Bundle Resources` step. Thank you for responding. I will close this.

---

<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:** [April 8, 2020, 6:03am UTC](https://devforum.zoom.us/t/zoom-ios-sdk-initialization-throws-exception/11684/4 "2020-04-08T06:03:10Z")

</div>

Hi [ar3396](https://devforum.zoom.us/t/zoom-ios-sdk-initialization-throws-exception/11684/3),

Glad to hear that the problem has resolved. 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, 8:22pm UTC](https://devforum.zoom.us/t/zoom-ios-sdk-initialization-throws-exception/11684/5 "2020-08-21T20:22:15Z")

</div>

Closed on August 21, 2020, 8:22pm UTC


