Mac

更新时间:
复制 MD 格式

This topic describes how to integrate the software development kit (SDK) on macOS.

Prerequisites

  • Xcode 14.0 or later is installed. For more information, see Xcode.

  • You need an Apple developer certificate or an individual account.

  • If you use a device without a built-in camera and microphone, such as a Mac mini, connect an external camera and microphone.

Environment requirements

For more information about the environment requirements for macOS, see Limits.

Integrate the SDK

  1. Download and decompress the SDK for macOS. For the download URL, see SDK Downloads.

  2. Create a new project and copy the decompressed SDK files into the project directory.

  3. Add the dependency files from the SDK to your project.

    1. On the Build Phases tab, add the DingRTC.framework and libffmpeg.dylib dependency files to the Link Binary With Libraries section.

    2. On the General tab, add DingRTC.framework and libffmpeg.dylib to the Frameworks, Libraries, and Embedded Content section. Set the Embed property for each to Embed & Sign.

      20240102173027.jpg

  4. On the Build Phases tab, add the following system libraries to the Link Binary With Libraries section:

    • libc++.tbd

    • libresolv.tbd

    • libcurl.tbd

    • libz.tbd

    • CoreMedia.framework

    • CoreAudio.framework

    • AudioToolbox.framework

    • AVFoundation.framework

  5. On the Build Settings tab, drag the DingRTC.framework folder to the Framework Search Path setting.

    20240102173228.jpg

  6. Edit the info.plist file to add permissions.

    20240102173952.jpg

  7. On the Signing & Capabilities tab, configure the required capabilities.

    20240102174221.jpg

  8. Press Command+B to build the project. If the message Build Success is displayed, the SDK is integrated.

What to do next

After you integrate the SDK, you can implement basic Real-Time Communication features. For more information, see Implement basic features on macOS.