Get started with the Meeting SDK for macOS

View as Markdown

Prerequisites

See the Changelog for the latest supported Zoom Meeting SDK version. See Minimum SDK version for the minimum supported version.

To use the Meeting SDK 7.0.0 and later, you'll need to meet these requirements.

The Meeting SDK for macOS does not support running in a sandbox environment.

Download the Meeting SDK for macOS

If you don't already have at least one registered app, follow these steps to create an app and download the SDK files.

  1. Sign in to your developer account on the Zoom App Marketplace.
    • Go to Zoom App Marketplace  and select Sign in at the top right corner.
    • Select the Developers link in the lower left corner, under the left hand navigation. If you don't see the link, verify that you have the correct permissions.
  2. On the Created apps page, select the blue plus sign in the upper left corner next to the word Developer.
  3. Select Build App > General app, and then select Create.
  4. Go to Features and select Embed.
  5. On the Embed page, enable Meeting SDK.
  6. Under the Meeting SDK section, configure the settings as appropriate for your app.
  7. To download the SDK files, select the platform macOS. This page displays available SDK versions for the selected platform, along with links to their corresponding release notes.
  8. Finally, select the Download button.

Verify files

The download includes SDK libraries - in the SampleApp/ZoomSDK folder - and a sample app - in the ZoomSDKSample folder.

  1. In Xcode, add the files in the Plugin folder to the app's plugins and foundation.

  2. Select your project and go to the Build Phases tab. Open Link Binary With Libraries and check that only these SDK files are present.

    • libcrypto.dylib
    • libjson.dylib
    • libminizip.dylib
    • Libssl.dylib
    • libcares.dylib
    • libzoombase_crypto_shared.dylib
    • ZoomSDK.framework
    • Cocoa.framework

    If you see other files in this location, remove them. If you are missing any files, download the SDK from the App Marketplace  again.

  3. After adding the SDK files, go back to the Build Phases tab. Ensure that ZoomSDK.framework and all of the .dylib files are included under Link Binary With Libraries. Add all files to the Copy Files step with a Destination set to Frameworks. The listed SDK files should already be present under Link Binary With Libraries.

    • If there are additional phases containing the SDK files, such as Copy Bundle Resources, remove those SDK files from those phases.

Confirm that the SDK was correctly added to your project by importing it in any file.

import ZoomSDK

Initialize the Meeting SDK for macOS

Complete these two steps to be able to use the Meeting SDK for macOS: Initialization and Authorization.

SDK initialization is done synchronously with an instance of ZoomSDKInitParams.

let zoomSdk = ZoomSDK.shared()
let initParams = ZoomSDKInitParams()
initParams.enableLog = true // Optional for debugging
zoomSdk.initSDK(with: initParams)
zoomSdk.zoomDomain = "zoom.us"

After initializing the SDK, you need to successfully authorize the SDK instance with your developer credentials.

if let authService = zoomSdk.getAuthService() {
    authService.delegate = self

    let authContext = ZoomSDKAuthContext()
    authContext.jwtToken = "" // Input your JWT
    authService.sdkAuth(authContext)
}

To determine whether auth was successful, ensure your class conforms to the ZoomSDKAuthDelegate protocol to listen for a result of ZoomSDKAuthError_Success:

extension AppDelegate : ZoomSDKAuthDelegate {
    func onZoomSDKAuthReturn(_ returnValue: ZoomSDKAuthError) {
        if (returnValue == ZoomSDKAuthError_Success) {
            // SDK auth was successful
        }
    }

    func onZoomAuthIdentityExpired() {

    }
}