# ZoomSDK for iOS Swift sample

**URL:** <https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583>\
**Category:** iOS\
**Created:** [May 16, 2017, 6:43am UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583 "2017-05-16T06:43:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cleofas\_Villarin](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@Cleofas\_Villarin](https://devforum.zoom.us/u/Cleofas_Villarin)\
**Post date:** [May 16, 2017, 6:43am UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/1 "2017-05-16T06:43:15Z")

</div>

Hello Community,

Good day.

We are a team building an iOS app for iPhone/iPad that requires video chat and we are now integrating your Zoom API to our app.

I tried running your sample Swift app:&nbsp;[https://github.com/zoomvideo/swift](https://github.com/zoomvideo/swift). However, when I run it on an actual device(iPad), I get the following error upon clicking either [Start a Meeting] or [Join a Meeting]:

**2017-05-16 14:03:44.585543 ZoomSDKSwiftSample[292:21334] [DYMTLInitPlatform] platform initialization successful**

**[292:1027:05-16/14:03:55.047:FATAL:SBPTUI.cpp(31)] Assert failed: g\_pPTUI.&nbsp;**

**2017-05-16 14:03:55.114248 ZoomSDKSwiftSample[292:21243] old data has cpoied done**

**[292:1027:05-16/14:03:55.167:FATAL:SBPTUI.cpp(193)] Assert failed: 0.&nbsp;**

**error was 0**

&nbsp;

Upon debugging, I found that&nbsp;

ZoomSDK.shared().getMeetingService() returns nil.&nbsp;

&nbsp;

Do you have a way to debug this error even better? Like showing us logs on what went wrong?

---

<div class="post-metadata">

**Author:** ![Cleofas\_Villarin](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@Cleofas\_Villarin](https://devforum.zoom.us/u/Cleofas_Villarin)\
**Post date:** [May 17, 2017, 9:31am UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/2 "2017-05-17T09:31:44Z")

</div>

And also, what is the difference between mobileRTC(used by the Objective-C sample app) and the ZoomSDK(used by the Swift sample app? We’re using Swift2.3 and confused on which is the correct SDK to use.

Regards,

Cleofas

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [May 17, 2017, 4:23pm UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/3 "2017-05-17T16:23:13Z")

</div>

Hi Cleofas,&nbsp;

ZoomSDK was old name for mobileRTC. the reason you got nil for getmeetingservice is because sdk auth got error. We will provide an update swift example shortly, we will keep you posted.

Best

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [May 17, 2017, 4:40pm UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/4 "2017-05-17T16:40:00Z")

</div>

Hi Cleofas,&nbsp;

we just updated Swift sample, you can get it @[https://github.com/zoomvideo/swift](https://github.com/zoomvideo/swift).

best

---

<div class="post-metadata">

**Author:** ![Cleofas\_Villarin](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@Cleofas\_Villarin](https://devforum.zoom.us/u/Cleofas_Villarin)\
**Post date:** [May 18, 2017, 6:20am UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/5 "2017-05-18T06:20:52Z")

</div>

Thank you very much Wei Guo! The new sample is finally working. 🙂

Now I’m looking for a way to simulate the calling mechanism, wherein the caller initiates the call and the callee is notified that there is incoming video call. If you have a suggestion in mind, we would greatly&nbsp;appreciate it! 🙂

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [May 18, 2017, 8:05pm UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/6 "2017-05-18T20:05:22Z")

</div>

Hi Cleofas,

Zoom SDK currently doesn’t support directly calling mechanism. We recommend you pass meeting ID/ join meeting URL by using some third parties technology, for example you can send a text message including meeting information when is the time for meeting.

Best

---

<div class="post-metadata">

**Author:** ![Cleofas\_Villarin](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@Cleofas\_Villarin](https://devforum.zoom.us/u/Cleofas_Villarin)\
**Post date:** [May 19, 2017, 3:19am UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/7 "2017-05-19T03:19:58Z")

</div>

Hello Wei,

That&nbsp;seems OK. We’ll also look for other ways to do it. Anyway, thank you so much for the support!

&nbsp;

Best regards,

Cleofas

---

<div class="post-metadata">

**Author:** ![David\_de\_Tena](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@David\_de\_Tena](https://devforum.zoom.us/u/David_de_Tena)\
**Post date:** [November 27, 2017, 11:19am UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/8 "2017-11-27T11:19:59Z")

</div>

Hello,

I’m trying your Swift sample. I set my rtc\_appkey, rtc\_appsecret and rtc\_domain in AppDelegate.swift. I also set rtc\_token taken from my Zoom account, API tab, but nothing happens when tapping on “Start meeting” button.

I also tried a call to API via Postman, and I got a 401-error “invalid user token”.

What should I do in order to test the app?

Thank you.

---

<div class="post-metadata">

**Author:** ![sam.decrock](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sam.decrock/32/8656_2.png) [@sam.decrock](https://devforum.zoom.us/u/sam.decrock)\
**Post date:** [May 17, 2020, 9:58pm UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/9 "2020-05-17T21:58:11Z")

</div>

There’s a Swift example you say? Where?

---

<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:** [May 19, 2020, 9:21am UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/10 "2020-05-19T09:21:30Z")

</div>

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

Thanks for using Zoom SDK. We do not have a Swift example at the moment. The previous Swift sample app has been deprecated. Our iOS SDK works in Swift projects, so if you encounter any issues, please let us know.

Thanks!

---

<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, 9:24pm UTC](https://devforum.zoom.us/t/zoomsdk-for-ios-swift-sample/583/11 "2020-08-21T21:24:15Z")

</div>


