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.
- Xcode , version 26 or later required.
- For the Intel package, set the target of your app project with Always embed Swift standard libraries to
YES. - A macOS device running 10.15 or later.
- Valid SDK credentials.
- A JWT token to authenticate the app.
- For individual users, a Zoom Access Key (ZAK) - send a GET request to the https://api.zoom.us/v2/users/{userId}/token with
type="zak"and pass it to the SDK with JoinMeetingParam4WithoutLogin 's zak or StartMeetingParamsWithoutLogin 's zak . - For apps that need to join the meeting as individual users, an OnBehalf Of (OBF) token - send a GET request to https://api.zoom.us/v2/users/{userId}/token with
type="onbehalf"and pass it to the SDK with JoinMeetingParam4WithoutLogin 's onBehalfToken . - To run the demo app, you'll need a meeting ID and passcode.
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.
- 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.
- On the Created apps page, select the blue plus sign in the upper left corner next to the word Developer.
- Select Build App > General app, and then select Create.
- Go to Features and select Embed.
- On the Embed page, enable Meeting SDK.
- Under the Meeting SDK section, configure the settings as appropriate for your app.
- 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.
- Finally, select the Download button.
If you already have at least one registered app, follow these steps to download the SDK files using your existing app.
- 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. This takes you to the Created Apps page. If you don't see the link, verify that you have the correct permissions.
- On the Created Apps page, select your SDK app to open its configuration pages.
- Go to Features and select Embed.
- On the Embed page, go to the Meeting SDK section.
- 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.
- 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.
-
In Xcode, add the files in the
Pluginfolder to the app's plugins and foundation. -
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.dyliblibjson.dyliblibminizip.dylibLibssl.dyliblibcares.dyliblibzoombase_crypto_shared.dylibZoomSDK.frameworkCocoa.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.
-
After adding the SDK files, go back to the Build Phases tab. Ensure that
ZoomSDK.frameworkand all of the.dylibfiles 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() {
}
}