App Crash when trying to run

class AppDelegate: UIResponder, UIApplicationDelegate, MobileRTCAuthDelegate {

var window: UIWindow?

let kSDKAppKey = "SDK key here"
let kSDKAppSecret = "SDK secret here"
let kSDKDomain = ""

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    // Override point for customization after application launch.
    // Step 1: Set SDK Domain and Enable log (You may disable the log feature in release version).
    // Step 2: Get Auth Service
    let authService = MobileRTC.shared().getAuthService()

    print("MobileRTC Version: \(MobileRTC.shared().mobileRTCVersion())")

    if authService != nil {
        // Step 3: Setup Auth Service
        authService?.delegate = self

        authService?.clientKey = kSDKAppKey
        authService?.clientSecret = kSDKAppSecret
        // Step 4: Call authentication function to initialize SDK

    return true

func onMobileRTCAuthReturn(_ returnValue: MobileRTCAuthError) {
print(“onMobileRTCAuthReturn (returnValue)”)

    if returnValue != MobileRTCAuthError_Success {
        let message = String(format: NSLocalizedString("SDK authentication failed, error code: %zd", comment: ""))


This is what my appDelegate looks like. It simply crashes on launch without any errors in console.

Hi iamsanketray123,

Thanks for using Zoom SDK and sharing the code. There are a few issues here:

  1. [IMPORTANT]It seems like you are posting your SDK key/secret in the public forum so please regenerate your SDK key/secret as soon as possible.
  2. The SDK domain should be . The domain you mentioned is not recognized by us.
  3. It looks like you did not initialize the SDK before performing SDK authentication, please refer to our demo app for the implementation:

Hope this helps. Thanks!