# Zoom SDK getting crashed

**URL:** <https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471>\
**Category:** iOS\
**Created:** [January 25, 2021, 11:40am UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471 "2021-01-25T11:40:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![guptarahul091](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@guptarahul091](https://devforum.zoom.us/u/guptarahul091)\
**Post date:** [January 25, 2021, 11:40am UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/1 "2021-01-25T11:40:57Z")

</div>

**Description**  
When I am trying to login with Zoom SSO, the app is getting crashed with a signal sigabrt error. XCode version is 12.2. iOS version: 13.6.1

**To Reproduce(If applicable)**  
I applied it in the following way:  
if let token = tokenTextField.text {  
let authService = MobileRTC.shared().getAuthService()  
authService?.delegate = self  
if authService?.login(withSSOToken: token, rememberMe: true) == true {  
print(“success”)  
}  
}

When I called authService?.login(withSSOToken: token, rememberMe: true), the crashing issue appears.  
**Screenshots**

 ![Screenshot 2021-01-25 at 5.05.36 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/0/70bbc4b377e113e5206fc2f5b7e08fa4fb71cfbb.jpeg)  
**Smartphone (please complete the following information):**

- Device: iPhone 6s
- OS: iOS 13.6.1

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 25, 2021, 7:38pm UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/2 "2021-01-25T19:38:56Z")

</div>

Hey @guptarahul091,

Thanks for using the dev forum.

Can you set a breakpoint on the line

> if authService?.login(withSSOToken: token, rememberMe: true) == true {

and verify the following:

- authService is not nil
- token is not nil
- authService.delegate is not nil

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![guptarahul091](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@guptarahul091](https://devforum.zoom.us/u/guptarahul091)\
**Post date:** [January 27, 2021, 7:35am UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/3 "2021-01-27T07:35:21Z")

</div>

I verified the things and nothing is nil. After the crash, each time when I am trying to launch the application, the app is getting crash on the time of launch.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 27, 2021, 5:47pm UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/4 "2021-01-27T17:47:06Z")

</div>

Hey @guptarahul091,

Sorry, is the crash happening with the app launches or when login is called?  
Can you also provide the SDK Version?  
Does commented out any specific lines prevent the crash?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![guptarahul091](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@guptarahul091](https://devforum.zoom.us/u/guptarahul091)\
**Post date:** [January 28, 2021, 7:22am UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/5 "2021-01-28T07:22:10Z")

</div>

No, When I launch the app first time, It is getting launch successfully without any crash. But when I tried to logged in with SSO token, It was getting crashed on line  
if authService?.login(withSSOToken: token, rememberMe: true) == true {

After that when I tried to relaunch the app, every time it is getting crash. The log is as follows:  
**2021-01-28 12:50:45.891024+0530 ZoomiOSSDKDemo[6293:1988634] old data has cpoied done**

**(lldb)**

I am using this SDK:

> **[zoom/client-sdk-iOS-getting-started](https://github.com/zoom/client-sdk-iOS-getting-started)**
>
> Contribute to zoom/client-sdk-iOS-getting-started development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 28, 2021, 8:50pm UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/6 "2021-01-28T20:50:49Z")

</div>

Hey @guptarahul091,

Where are you getting the token from? That seems strange the token would be causing this issue. Does it also crash if you log in with an email and password instead?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![guptarahul091](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@guptarahul091](https://devforum.zoom.us/u/guptarahul091)\
**Post date:** [January 29, 2021, 6:25am UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/7 "2021-01-29T06:25:16Z")

</div>

I tested it with Authorization token as well as id-token of Azure and Google also. I am getting crash for both.  
But with email and password, there is no issue. It is working fine.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 29, 2021, 8:12pm UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/8 "2021-01-29T20:12:28Z")

</div>

Hey @guptarahul091,

Have you configured your SSO to work with Zoom? The SSO token must be generated from the identity provider that you have previously configured with Zoom. This function does not take in any token generated from a third party log in, it will only take the one for your configuration with Zoom SSO.

> **[Getting started with SSO](https://support.zoom.us/hc/en-us/articles/201363003-Getting-started-with-SSO)**
>
> Overview
> Single sign-on allows you to login using your company credentials. Zoom single sign-on (SSO) is based on SAML 2.0. Zoom works with Okta as well as other enterprise identity management plat...

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![kareem\_91](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kareem_91/32/36814_2.png) [@kareem\_91](https://devforum.zoom.us/u/kareem_91)\
**Post date:** [April 12, 2022, 12:49pm UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/9 "2022-04-12T12:49:25Z")

</div>

## @Michael_Condon hey i have a crashing issue when i start an instant meeting when i type email and password , and press login the app crashes i use the sdk github sample the error is ::– **2022-04-12 14:46:42.791568+0200 ZoomDemoApp[42515:1443200] \*\*\* Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[MobileRTCAuthService loginWithEmail:password:rememberMe:]: unrecognized selector sent to instance 0x600000bb8f40’**

i am sure that i send the email and password and not null .  
how to solve this issue please?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 13, 2022, 12:23am UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/10 "2022-04-13T00:23:51Z")

</div>

Hi @kareem_91, thanks for using our SDK.

Can you please confirm which version of the SDK you are using and provide a code snippet showing how you are trying to login?

Thanks!

---

<div class="post-metadata">

**Author:** ![kareem\_91](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kareem_91/32/36814_2.png) [@kareem\_91](https://devforum.zoom.us/u/kareem_91)\
**Post date:** [April 13, 2022, 12:54am UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/12 "2022-04-13T00:54:14Z")

</div>

Hi @jon.zoom  
Version :- v5.10.1.3038 LATEST  
i try to upload the snippet of code But this error appear from your side “Sorry, you can’t embed media items in a post.” So i copy the code directly  
Code:=======  
if let authorizationService = MobileRTC.shared().getAuthService() {  
authorizationService.login(withEmail: email, password: password, rememberMe:false)  
}  
Thanks

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 13, 2022, 9:52pm UTC](https://devforum.zoom.us/t/zoom-sdk-getting-crashed/41471/13 "2022-04-13T21:52:15Z")

</div>

Hi @kareem_91,

Thanks for confirming. The `login` method no longer exists in the Meeting SDK on that version, so I’m not even sure how you’re able to successfully build your app with the code you’re using. As of v5.9.0, all users must be authenticated through [Zoom OAuth](https://marketplace.zoom.us/docs/api-reference/using-zoom-apis/#using-oauth-20), so you will need to migrate to that if you wish to include user authentication in your SDK app.

Also for future reference, this forum utilizes markdown for replies so you can embed code snippets by putting a ``` before and after the block of code you wish to include. 🙂

Thanks!
