# iOS App getting crashed when clicking leave button in live webinar

**URL:** <https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216>\
**Category:** iOS\
**Created:** [January 10, 2023, 3:34pm UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216 "2023-01-10T15:34:47Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![coolgary90](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/coolgary90/32/40843_2.png) [@coolgary90](https://devforum.zoom.us/u/coolgary90)\
**Post date:** [February 28, 2023, 5:05pm UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/23 "2023-02-28T17:05:31Z")

</div>

Hi @elaine.ku @carson.zoom ,

App is still crashing in iPhone also while leaving the meeting with latest SDK ver 5.13.5

When i typed bt all;image list; on xcode console after the crash, it printed following error  
error: bt [| all]

But i got some results when i typed bt all and then image list on the Xcode console. Please download the files from below links which contains the output i got after typing bt all and image list

image list → [image list.rtf - Google Drive](https://drive.google.com/file/d/17JJTPyDxriDdojTXgK6vaEBSzEYhGVQk/view?usp=sharing)

bt all —\> [bt all.rtf - Google Drive](https://drive.google.com/file/d/12tvrur9fyUVlghlEixEbJgMPDMTmmtRp/view?usp=sharing)

bt all;image list; ----\> [iphoneCrash.png - Google Drive](https://drive.google.com/file/d/17mY6bKg3tKJjywBn3l5Mh7HFLEQwk1kU/view?usp=sharing)

I also noticed when i leave the meeting then meeting status changes to connecting after disconnecting in onMeetingStateChange delegate method.

Is there anything we need to do when meeting status changes to disconnecting? I mean why the status is changing from disconnecting to connecting while leaving the meeting.

---

<div class="post-metadata">

**Author:** ![elaine.ku](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elaine.ku/32/40026_2.png) [@elaine.ku](https://devforum.zoom.us/u/elaine.ku)\
**Post date:** [March 1, 2023, 10:01pm UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/24 "2023-03-01T22:01:12Z")

</div>

Hi @coolgary90 ,

We’re now working on it and found some possible issues that cause the crash, but we cannot reproduce the problem you’ve mentioned to prove our finding. Would you please provide the detailed step to reproduce the issue?  
Thank you

Elaine

---

<div class="post-metadata">

**Author:** ![elaine.ku](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elaine.ku/32/40026_2.png) [@elaine.ku](https://devforum.zoom.us/u/elaine.ku)\
**Post date:** [March 10, 2023, 11:32pm UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/25 "2023-03-10T23:32:24Z")

</div>

Hello @coolgary90 ,

Is there an update about the steps to reproduce the issue? We were trying to find out the root cause of this issue but would like to have your help to provide the steps.  
Thank you

Elaine

---

<div class="post-metadata">

**Author:** ![coolgary90](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/coolgary90/32/40843_2.png) [@coolgary90](https://devforum.zoom.us/u/coolgary90)\
**Post date:** [March 14, 2023, 6:51am UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/26 "2023-03-14T06:51:18Z")

</div>

Hi @elaine.ku @carson.zoom

Detail steps are as follow:

- Authorize the zoom SDK with client key and client secret.
- Join the live zoom webinar by providing userName, meetingNumber and webinarToken
- Able to attend the meeting successfully.
- But when we try to leave the meeting by clicking leave meeting button, iOS app crashes.

Please check the below link of swift file which we are using to authorize the zoom SDK and join the meeting.

> **[ZoomWebinar.swift](https://drive.google.com/file/d/1DxuLfU-ZHMOj4dFQ_du1NPp6r-M5x5gl/view?usp=share_link)**
>
> Google Drive file.

Please let me know if that helps to debug the issue.

Thanks!

---

<div class="post-metadata">

**Author:** ![elaine.ku](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elaine.ku/32/40026_2.png) [@elaine.ku](https://devforum.zoom.us/u/elaine.ku)\
**Post date:** [March 17, 2023, 6:31am UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/27 "2023-03-17T06:31:03Z")

</div>

Hello @coolgary90 ,

Our team has tried the same step as yours but we cannot reproduce the issue. We had looked into the swift file that you provided and wondering if the foundation `onClickedEndButton` is to leave the meeting since it didn’t use the `leaveMeetingWithCmd` function.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/0/5035462f02684836fa00b70010d2fbacfc1fd752.png)

---

<div class="post-metadata">

**Author:** ![coolgary90](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/coolgary90/32/40843_2.png) [@coolgary90](https://devforum.zoom.us/u/coolgary90)\
**Post date:** [March 27, 2023, 8:59pm UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/28 "2023-03-27T20:59:10Z")

</div>

Hi @elaine.ku@carson.zoom

I have tried using service.leaveMeeting(with: .leave) also in onClickedEndButton(), But still the app was crashing at our end.

Did you find anything missing in the ZoomWebinar.swift file which i had shared earlier ?

Thanks!

---

<div class="post-metadata">

**Author:** ![elaine.ku](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elaine.ku/32/40026_2.png) [@elaine.ku](https://devforum.zoom.us/u/elaine.ku)\
**Post date:** [April 6, 2023, 6:02pm UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/29 "2023-04-06T18:02:07Z")

</div>

Hi @coolgary90 ,

Just wondering where is the function service.leaveMeeting from since we do not have this function in our SDK. We only have function `leaveMeetingWithCmd` in the meeting service interface.  
Thank you

Elaine

---

<div class="post-metadata">

**Author:** ![coolgary90](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/coolgary90/32/40843_2.png) [@coolgary90](https://devforum.zoom.us/u/coolgary90)\
**Post date:** [April 12, 2023, 2:21pm UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/30 "2023-04-12T14:21:30Z")

</div>

Hi @elaine.ku @carson.zoom

Regarding service.leavingMeeting, I am referring for below code. Here we are using object of getMeetingService to leave the meeting.

if let service = MobileRTC.shared().getMeetingService(){  
service.leaveMeeting(with: .leave)  
service.delegate = nil  
}

Is there anything else we need to do while leaving the meeting and did you find anything which we are missing in ZoomWebinar.swift which i shared earlier ?

Will really appreciate if you can please let us know if we are missing something here.

Thanks!

---

<div class="post-metadata">

**Author:** ![coolgary90](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/coolgary90/32/40843_2.png) [@coolgary90](https://devforum.zoom.us/u/coolgary90)\
**Post date:** [April 25, 2023, 3:36am UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/31 "2023-04-25T03:36:56Z")

</div>

Hi @elaine.ku@carson.zoom  
Can you please provide your feedback regarding the code we shared earlier and let us know if we are missing something in the implementation?

Thanks!

---

<div class="post-metadata">

**Author:** ![elaine.ku](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elaine.ku/32/40026_2.png) [@elaine.ku](https://devforum.zoom.us/u/elaine.ku)\
**Post date:** [April 25, 2023, 8:55pm UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/32 "2023-04-25T20:55:58Z")

</div>

Hi @coolgary90 ,

Sorry for the late reply. We do not have the function `leaveMeeting` in our meeting service. There’s only `leaveMeetingWithCmd`. E.g.:

```auto
MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService];
if (!ms) return;
[ms leaveMeetingWithCmd:LeaveMeetingCmd_End];

```

Would you please use `leaveMeetingWithCmd` to leave/end the meeting and see whether the app still crashed?  
Thank you

Elaine

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 26, 2023, 6:56am UTC](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216/33 "2023-05-26T06:56:21Z")

</div>

Closed on May 26, 2023, 6:56am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://devforum.zoom.us/t/ios-app-getting-crashed-when-clicking-leave-button-in-live-webinar/81216.md?page=1)
