This is WebRTC framework for iOS that Plivo builds on top of Google WebRTC. It includes build which is bitcode enabled.
Platform | Minimum Swift Version | Installation | Status |
---|---|---|---|
iOS 12.0+ / macOS 10.14+ | 5.1 | CocoaPods, Swift Package Manager | Fully Tested |
The size of the framework is huge. In order to install on your project, you can use CocoaPods or Swift Package Manager. If you want to use CocoaPods, then you have to install git-lfs first. Please refer to the git-lfs document.
Add below into your Podfile.
platform :ios, '12.0'
use_frameworks!
target YOUR_PROJECT_TARGET do
pod 'PlivoWebRTC'
end
Install WebRTC Framework through CocoaPods.
pod install
Now you can see installed WebRTC framework by inspecting YOUR_PROJECT.xcworkspace
.
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler. It is in early development, but PlivoWebRTC does support its use on supported platforms.
Once you have your Swift package set up, adding PlivoWebRTC as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/plivo/plivo-webrtc-ios.git", .upToNextMajor(from: "1.0.6"))
]
Requires Carthage version 0.38 or higher
- Add
binary "https://raw.githubusercontent.com/plivo/plivo-webrtc-ios/main/PlivoWebRTC.json"
to your Cartfile. - Run
carthage update --use-xcframeworks
. - Go to your Xcode project's
"General"
settings. Open<YOUR_XCODE_PROJECT_DIRECTORY>/Carthage/Build/iOS
in Finder and dragWebRTC.xcframework
to the"Embedded Binaries"
section in Xcode. Make sureCopy items if needed
is selected and clickFinish
.