# Running Zoom SDK from an iOS Swift framework

**URL:** <https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377>\
**Category:** iOS\
**Created:** [August 7, 2019, 11:23am UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377 "2019-08-07T11:23:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [August 7, 2019, 11:23am UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/1 "2019-08-07T11:23:24Z")

</div>

My implementation is a simple app running an SDK. I wanted to add the Zoom SDK to my SDK, but the app crashes after MobileRTC initialisation without a clear reason. Can you help?

---

<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:** [August 7, 2019, 5:29pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/2 "2019-08-07T17:29:42Z")

</div>

Hi idit,

Thanks for using Zoom SDK. Our iOS SDK should be compatible with Swift. We have a lot of users who is using Swift for development. What error code are you getting? Could you provide your SDK log file and the .crash file?

It would also be helpful if you could provide the following information:

**Description**  
A clear and concise description of what the question is.

**Which version?**  
Knowing the version can help us to identify your issue faster.

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

**Screenshots**  
If applicable, add screenshots to help explain your problem.

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

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 22]

**Additional context**  
Add any other context about the problem here.

Thanks!

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [August 21, 2019, 12:53pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/3 "2019-08-21T12:53:54Z")

</div>

It is a bit complicated to explain, I did compile your SDK with our swift app successfully, but failed when trying to compile with our swift framework.  
I can’t figure out how to upload the crash file here, I don’t have a log file

---

<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:** [August 21, 2019, 5:47pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/4 "2019-08-21T17:47:44Z")

</div>

Hi idit,

Thanks for the reply. For the SDK log, you can find the way to enable it and retrieve it from here:[https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization#2-log-feature](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization#2-log-feature)

Once you have the SDK log, could you put the log and the .crash file in a shared drive(Like Google Drive), and share the link with us? If you do not want to share the log file here, you can send me a private in-forum message regarding this.

Thanks!

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [August 21, 2019, 6:25pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/5 "2019-08-21T18:25:38Z")

</div>

I’ve put the crash log here:  
[https://drive.google.com/open?id=1g54Rbdf-LQi\_f3csw\_\_H\_XJbpm8B8MdI](https://drive.google.com/open?id=1g54Rbdf-LQi_f3csw__H_XJbpm8B8MdI)  
I can’t currently create a log file for the SDK since I moved the SDK to the app level, it’s not crashing anymore. If you still need it, I’ll go back and try again.  
Another thing, now that the SDK is in the app level, I get an error when trying to upload to the app connect:  
ERROR ITMS-90171: “Invalid Bundle Structure - The binary file ‘UnifiedApp.app/Frameworks/MobileRTC.framework/MobileRTC’ is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at [https://developer.apple.com/go/?id=bundle-structure](https://developer.apple.com/go/?id=bundle-structure) for information on the iOS app bundle structure.”  
I followed all 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)  
Can you help?

---

<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:** [August 21, 2019, 6:38pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/6 "2019-08-21T18:38:13Z")

</div>

Hi idit,

Thanks for the prompt reply. I will pass this information to our engineering team and look into. Hopefully the root cause can be found in the crash file.

BTW, which version of SDK are you using? Are you using the device-only version(the one directly download from Github master), or the all version? You can find the version info here: [https://github.com/zoom/zoom-sdk-ios/releases](https://github.com/zoom/zoom-sdk-ios/releases)

Thanks!

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [August 21, 2019, 6:41pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/7 "2019-08-21T18:41:19Z")

</div>

I’m using version number: v4.4.55130.0712. Downloaded from [https://github.com/zoom/zoom-sdk-ios](https://github.com/zoom/zoom-sdk-ios).

---

<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:** [August 22, 2019, 10:07pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/8 "2019-08-22T22:07:18Z")

</div>

Hi idit,

Thanks for your reply. Could you help to confirm the following:

- `MobileRTC.framework` is shown in the `General > Embedded Binaries`, `General > Linked Frameworks and Libraries`, and `Build Phases > Link Binary With Libraries`
- `MobileRTCResources.bundle` is added correctly and shown in `Build Phases > Copy Bundle Resources`?

After analyzing the crash log, it seems like the crash happens with this method:

```auto
- (void)onMeetingStateChange:(MobileRTCMeetingState)state

```

Can you try to comment out this method and see if the crash still exist? Could you share a code snippet of the implementation of this method?

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [August 25, 2019, 8:08am UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/9 "2019-08-25T08:08:40Z")

</div>

Hi,  
Regarding MobileRTC, I did the above and still get an error when uploading to store.  
Regarding onMeetingStateChange, I don’t have an implementation for it. I’ll check again and see the logs.

Thanks,  
Idit

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [August 25, 2019, 11:52am UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/10 "2019-08-25T11:52:22Z")

</div>

Hi,

Regarding the error I got when uploading to the store, it seems to be an issue with our CI system. When uploading from my Mac it works.  
Thanks anyway,  
Idit

---

<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:** [August 26, 2019, 7:08pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/11 "2019-08-26T19:08:11Z")

</div>

Hi idit,

Thanks for the reply. Regarding the `onMeetingStateChange` delegate callback, it is a required callback that needs to be implemented, you may refer to the doc and the implementation in our demo: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/start-join-meeting/api-user/start-meeting#2-start-meeting-status](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/start-join-meeting/api-user/start-meeting#2-start-meeting-status)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [August 27, 2019, 6:04am UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/12 "2019-08-27T06:04:51Z")

</div>

Hi Carson,

I’ll add that implementation. Thanks!

---

<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 28, 2019, 10:25pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/13 "2019-08-28T22:25:37Z")

</div>

Thanks @carson.zoom!

Let us know if you have any other questions @idit.barash 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![p.yashwanth](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@p.yashwanth](https://devforum.zoom.us/u/p.yashwanth)\
**Post date:** [September 4, 2019, 7:59am UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/14 "2019-09-04T07:59:24Z")

</div>

Getting this error while integrating Zoom SDK

**dyld: Library not loaded: @rpath/MobileRTC.framework/MobileRTC**

**Referenced from: /var/containers/Bundle/Application/BB9FEB6D-61B8-4687-A914-2D7E04F07B4B/Zoom\_Sample.app/Zoom\_Sample**

**Reason: image not found**

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [September 4, 2019, 8:10am UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/15 "2019-09-04T08:10:46Z")

</div>

@p.yashwanth I got this error when I forgot to add the SDK as an Embedded Binary

---

<div class="post-metadata">

**Author:** ![p.yashwanth](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@p.yashwanth](https://devforum.zoom.us/u/p.yashwanth)\
**Post date:** [September 4, 2019, 8:56am UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/16 "2019-09-04T08:56:58Z")

</div>

Thank you for your email, I solved this problem by re adding the lib file and adding the SDK in Embedded Binary. Now it is working fine.

---

<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:** [September 4, 2019, 3:59pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/17 "2019-09-04T15:59:25Z")

</div>

Thanks for the answer @idit.barash!

Glad it is working now @p.yashwanth 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![pakistan.salman92](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pakistan.salman92/32/3319_2.png) [@pakistan.salman92](https://devforum.zoom.us/u/pakistan.salman92)\
**Post date:** [February 25, 2020, 12:03pm UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/18 "2020-02-25T12:03:39Z")

</div>

![Screen Shot 2020-02-25 at 4.01.49 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/215c694d1f688c30791e1ab3672d8014885d8256.png)

Hi Team I’m facing this issue in sample code of Zoom iOS.Please help me

---

<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:** [February 26, 2020, 1:33am UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/19 "2020-02-26T01:33:34Z")

</div>

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

Thanks for using Zoom SDK. Could you provide more info on the error you are getting? It looks like the ZoomAuthentication.framework is not our iOS SDK. You may find the iOS SDK here: [https://github.com/zoom/zoom-sdk-ios](https://github.com/zoom/zoom-sdk-ios), and please follow the instruction here to integrate the SDK into your app: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![vishaljadav123](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vishaljadav123/32/39013_2.png) [@vishaljadav123](https://devforum.zoom.us/u/vishaljadav123)\
**Post date:** [May 30, 2020, 5:28am UTC](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377/20 "2020-05-30T05:28:43Z")

</div>

You can implement like this : [Zoom SDK Implementation in iOS Using Swift](https://medium.com/@vishaljadav123/zoom-sdk-integration-in-ios-swift-25ce12c0be8c)

[Next page](https://devforum.zoom.us/t/running-zoom-sdk-from-an-ios-swift-framework/5377.md?page=2)
