Skip to content

WebRTC framework in xcframework format for iOS and macOS.

License

Notifications You must be signed in to change notification settings

siuying/WebRTC_Universal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages