# 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:** 1\
**Showing post:** 9

<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
...

```

---

_[View the full topic](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975)._
