siuying / WebRTC_Universal

WebRTC framework in xcframework format for iOS and macOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebRTC Universial Binary

This is WebRTC framework in xcframework format for iOS and macOS.

Google provides the official builds for iOS, if all you need is iOS build, get it from Google:

Installation

Manual Install

Download the xcframework at Release and drag it into your Xcode project.

CocoaPods

Requires cocoapods 1.9.0 or above.

pod "WebRTC", :podspec => "https://raw.githubusercontent.com/siuying/WebRTC_Universal/master/WebRTC.podspec"

Building your own manually

  1. Setup WebRTC Native Code project at (http://webrtc.github.io/webrtc-org/native-code/), you will need prerequisite tools (Chromium depot tools, ninja and Xcode)
  2. Generate iOS and macOS targets
gn gen out/ios_64 --args='target_os="ios" target_cpu="arm64" is_debug=false' 
gn gen out/ios_sim --args='target_os="ios" target_cpu="x64" is_debug=false'
gn gen out/mac --args='target_os="mac" target_cpu="x64" is_debug=false'                                               
  1. Build the targets
ninja -C out/ios_64 AppRTCMobile
ninja -C out/ios_sim AppRTCMobile
ninja -C out/mac AppRTCMobile
  1. Generate xcframework
xcodebuild -create-xcframework \
  -framework ./out/ios_64/WebRTC.framework \
  -framework ./out/ios_sim/WebRTC.framework \
  -framework ./out/mac/WebRTC.framework \
  -output ./out/WebRTC.xcframework

About

WebRTC framework in xcframework format for iOS and macOS.

License:Other


Languages

Language:Ruby 100.0%