跳到主要内容

SDK集成

更新时间:2024-12-11 19:02:54

SDK 导入

比如:对下载的 RTCX_iOS_AppSDK_1.2.0.5_aa4e9f6_20241211170126_Release.zip 压缩包解压后,里面的所有 framework 就是我们要使用的 SDK 了,如下图所示:

图片

将所有 framework 拷贝至 Xcode 项目

Xcode 相关配置

Xcode -> Build Phases -> Link Binary With Libraries 导入以下系统库

  • VideoToolbox.framework
  • AudioToolbox.framework
  • AVFoundation.framework
  • CoreMedia.framework
  • SystemConfiguration.framework
  • libiconv.tbd

Xcode -> General -> Frameworks,Libraries,and Embedded Content 设置 SDK 配置项为 Embed & Sign

Xcode -> Build Settings 配置

Xcode -> Build Settings -> Enable Bitcode 设置为 NO
Xcode -> Build Settings -> Other Linker Flags 值加入 -ObjC