Ribbon WebRTC iOS SDK
安装
CocoaPods
CocoaPods是Cocoa项目的依赖管理器。有关用法和安装说明,请访问他们的网站。要使用CocoaPods将Ribbon WebRTC iOS SDK集成到您的Xcode项目中,在Podfile
中指定它
...
use_frameworks!
target 'YOUR_TARGET_NAME' do
pod 'RibbonWebRTCSDK', '~> 6.16.0'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
installer.aggregate_targets.each do |aggregate_target|
aggregate_target.user_project.native_targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['LIBRARY_SEARCH_PATHS'] = ['$(SDKROOT)/usr/lib/swift', '$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)', '$(inherited)']
end
end
aggregate_target.user_project.save()
end
end
...
Swift包管理器
- 文件 > Swift 包 > 添加包依赖
- 添加 https://github.com/RibbonCommunications/webrtc-ios-sdk.git
- 选择“分支”并选择“master”
手动
或者,可以使用以下步骤将 Ribbon WebRTC iOS SDK 手动整合到项目中:点击此处。
文档
有关教程和文档的信息可在以下链接中找到
兼容性
兼容的 iOS 版本
- iOS 11.x+
兼容的 XCode 版本
- XCode 13.x+
兼容的 Ribbon WebRTC 网关服务器版本
-
WebRTC 网关 4.8.1
-
WebRTC 网关 4.9.1
测试于
- iPhone 6S, 7, 7+, 8, X, 11, 11 Pro, iPad mini, 和 iPad Air