This repository contains unofficial distribution of WebRTC framework binaries for iOS, macOS and tvOS.
Since version M80, Google has deprecated their mobile binary libraries distributions (Was officially using the GoogleWebRTC pod). To get the most up to date WebRTC library, you can compile it on your own, or you can use precompiled binaries from here or other sources.
The binary releases correspond with official Chromium releases and branches as specified in the Chromium dashboard.
- All binaries in this repository are compiled from the official WebRTC source code.
- Certain patches have been applied to ensure proper compilation for all of the included platforms. They can be found in the
patches/
directory. - Dynamic framework (xcframework format) which contains multiple binaries for macOS, iOS, and tvOS.
- iOS 12+
- macOS 10.11+
- macOS Catalyst 11.0+
- tvOS 12+
Platform / arch | arm64 | x86_x64 |
---|---|---|
iOS (device) | ✅ | N/A |
iOS (simulator) | ✅ | ✅ |
macOS | ✅ | ✅ |
macOS Catalyst | ✅ | ✅ |
tvOS (device) | ✅ | N/A |
tvOS (simulator) | ✅ | ⛔️ |
Xcode has a built-in support for Swift package manager. You can easily add the package by selecting File > Swift Packages > Add Package Dependency. Read more in Apple documentation.
Or, you can add the following dependency to your Package.swift
file:
dependencies: [
.package(url: "https://github.com/tylerjonesio/WebRTC.git", .upToNextMajor("117.0.0"))
]
Use the latest
branch to get the most up to date binary:
dependencies: [
.package(url: "https://github.com/tylerjonesio/WebRTC.git", branch: "latest")
]
- Download the framework from the releases section.
- Unzip the file.
- Add the xcframework to your target(s) embedded frameworks.
To import WebRTC to your code add the following import statement
import WebRTC
If you wish to see how to use WebRTC I highly recommend checking out the upstream WebRTC demo iOS app: https://github.com/stasel/WebRTC-iOS
If you wish to compile your own WebRTC binary framework, please refer to the following official guide: https://webrtc.googlesource.com/src/+/refs/heads/main/docs/native-code/ios/README.md
You can also take a look at the build script I created for more details.
- BSD 3-Clause License
- WebRTC License: https://webrtc.org/support/license