- Language: Objective-C
- Build environment: Xcode 14.0 or later
- Supported OS: iOS 16.0 or later (since
3.1.0; previously iOS 10.0) - The SDK doesn’t support building for the simulator
- Set Enable Bitcode to NO
There are two SRTC SDKs for Apple platforms—confirm which one you need first. This page covers the Objective-C
RTCEngineKit; there is also a native Swift SDK (import SRTC, distributed as a Swift Package, supporting both iOS and macOS)—see Swift SDK.For new projects, we recommend the Swift SDK. The two APIs can’t be mixed, and don’t include both in the same project.Manual integration (not recommended)
- Get the version of RTCEngineKit you need, then import the resulting
RTCEngineKit.frameworkinto your project. - Add the system libraries that
RTCEngineKitdepends on
-
Also add
onnxruntime.xcframework(1.24.x). The inference engine for virtual background isn’t bundled inRTCEngineKit.framework; the SDK keeps only its undefined symbols, which your app resolves at link time. Without this library, linking fails with undefined symbols such as_OrtGetApiBase. You can get the iOS package from ONNX Runtime Releases, or use the CocoaPods integration below, which brings it in automatically. -
Add
#import <RTCEngineKit/RTCEngineKit.h>wherever you useRTCEngineKit
Automatic integration (recommended)
AddRTCEngineKit to your Podfile