# iOS device auth crash on v4.3.1.47201.0322

**URL:** <https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975>\
**Category:** Meeting SDK\
**Created:** [April 18, 2019, 12:24pm UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975 "2019-04-18T12:24:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![dapeng.li](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@dapeng.li](https://devforum.zoom.us/u/dapeng.li)\
**Post date:** [April 18, 2019, 12:24pm UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/1 "2019-04-18T12:24:43Z")

</div>

**Description**  
I have met lots of crashes on iOS 9.3.5 after I upgrade SDK to v4.3.1.47201.0322

**Which version?**  
v4.3.1.47201.0322

**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: iPad
- OS: iOS 9.3.5, iOS 10.3.3
- Version [e.g. 22]

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

---

<div class="post-metadata">

**Author:** ![dapeng.li](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@dapeng.li](https://devforum.zoom.us/u/dapeng.li)\
**Post date:** [April 18, 2019, 12:44pm UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/2 "2019-04-18T12:44:35Z")

</div>

> **[com.alo7.student\_issue\_crash\_6c23bc37947547278b462b6836f87f98\_DNE\_0\_v2.txt](https://drive.google.com/file/d/1FS05CFD9QAhM8tyE_SWLTcD_D-TLpfx5/view?usp=drive_open)**
>
> Google Drive file.

  

> **[com.alo7.student\_issue\_crash\_b04cc21351ae41e3a708dd1205fe661f\_DNE\_0\_v2.txt](https://drive.google.com/file/d/1rPv3RmCa1Bw_wbH9epNRT0ojowlDtwfw/view?usp=drive_open)**
>
> Google Drive file.

  

> **[com.alo7.student\_issue\_crash\_bd89a247361c45d79e57be881326d395\_DNE\_0\_v2.txt](https://drive.google.com/file/d/1gUWlEvZGbKTYdzuK6c4wf2CzP21j01fO/view?usp=drive_open)**
>
> Google Drive file.

I have upload some crash stack info. This problem has affected many users. So I hope to solve this problem as soon as possible.

Thanks

---

<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 19, 2019, 2:27am UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/3 "2019-04-19T02:27:18Z")

</div>

Hi dapeng,

Thanks for using Zoom SDK and thanks for providing the crash logs. Based on your logs, the root cause of this issue is the instance of `MobileRTCMeetingServiceDelegate` was not set to `nil` after you finish using our Zoom services. We defined the delegate as `assign property`, which needs to be set `nil` manually.

```auto
@property (nullable, assign, nonatomic) id<MobileRTCMeetingServiceDelegate> delegate;

```

Setting the delegate to `nil` should fix this crash. Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![dapeng.li](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@dapeng.li](https://devforum.zoom.us/u/dapeng.li)\
**Post date:** [April 19, 2019, 2:37am UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/4 "2019-04-19T02:37:20Z")

</div>

Hi, Carson,  
Thanks for your reply. But this crash was happened at `auth` step and I never set meetingServcie delegate before auth success. This crash only shows on iOS 9 and iOS 10, and never appear before the SDK upgrade.

---

<div class="post-metadata">

**Author:** ![dapeng.li](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@dapeng.li](https://devforum.zoom.us/u/dapeng.li)\
**Post date:** [April 19, 2019, 2:42am UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/5 "2019-04-19T02:42:31Z")

</div>

Or you mean that I **CANT** set `meetingService` delegate before the meeting start? But I follow the same step with the previous SDK and never crashed before.

---

<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 19, 2019, 3:03am UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/6 "2019-04-19T03:03:42Z")

</div>

Hi,  
Thanks for prompt reply. Is this error only happens on iOS 9/10? Is it working fine on iOS 11/12?

---

<div class="post-metadata">

**Author:** ![dapeng.li](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@dapeng.li](https://devforum.zoom.us/u/dapeng.li)\
**Post date:** [April 19, 2019, 3:20am UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/7 "2019-04-19T03:20:32Z")

</div>

Yes, It never happed on iOS 11/12, and this crash is not necessarily, lots of user only crash once.

---

<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 19, 2019, 6:28am UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/8 "2019-04-19T06:28:41Z")

</div>

Hi Dapeng,  
Thanks for the reply. May I also inquire the following questions:

1. Is this error only happens on device or or simulator? Is it only happen on certain device(like iPad)?
2. Could you share some code snippet of how you initialize and call the authentication (auth()), and the meeting service?

Thanks!

---

<div class="post-metadata">

**Author:** ![dapeng.li](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@dapeng.li](https://devforum.zoom.us/u/dapeng.li)\
**Post date:** [April 19, 2019, 8:00am UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/9 "2019-04-19T08:00:17Z")

</div>

1. Both of iPad and iPhone.
2. Sample Code:

```auto

// AppDelegate.swift
let sharedInstance = Zoom() // this is a singleton

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        sharedInstance.auth()
}

/// Zoom.swift
class Zoom: NSObject {
    private func auth() {
        #if !arch(x86_64)
            MobileRTC.shared().setMobileRTCDomain(API.domain)
            let service = MobileRTC.shared().getAuthService()
            if service != nil {
                service?.clientKey = API.key
                service?.clientSecret = API.secret
                service?.delegate = self
                service?.sdkAuth()
            }
        #endif
    }
}

#if !arch(x86_64)
extension Zoom: MobileRTCAuthDelegate, MobileRTCMeetingServiceDelegate {
    func onMobileRTCAuthReturn(_ returnValue: MobileRTCAuthError) {
        switch returnValue {
        case MobileRTCAuthError_Success:
            MobileRTC.shared()?.getMeetingService()?.delegate = self
        default:
            break
        }
    }
    ///...
}
#endif
...

```

---

<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 19, 2019, 8:14pm UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/10 "2019-04-19T20:14:52Z")

</div>

Hi Dapeng,

Thank you for the info. This is situation is a little bit fishy and we are investigating the issue. I will get back to you as soon as we found anything.

Thank you!

---

<div class="post-metadata">

**Author:** ![dapeng.li](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@dapeng.li](https://devforum.zoom.us/u/dapeng.li)\
**Post date:** [April 22, 2019, 12:49pm UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/11 "2019-04-22T12:49:56Z")

</div>

Hi Carson,

Thanks for your reply firstly.

I will downgrade the SDK version to avoid this issue before we can resolve this crash.  
Hope that this issue will be resolved as soon as possible.

---

<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 16, 2019, 9:47pm UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/12 "2019-05-16T21:47:45Z")

</div>

Hi dapeng,

Hope everything is going well. We would like to provide a build to resolve the crash issue that you are facing. I will send you a forum message in the bit.

Thank you!

---

<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, 6:15pm UTC](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/13 "2020-08-21T18:15:58Z")

</div>

Closed on August 21, 2020, 6:15pm UTC


