Build libwebrtc for cordova-plugin-iosrtc
October 26, 2021 ยท View on GitHub
Get the libwebrtc source code
There are several ways to get and build the library. We choose a project that performs this task nicely:
react-native-webrtc/blob/master/Documentation/BuildingWebRTC.md
Once you have WebRTC.framework copy the build into lib
Generate xcframework
Once you have WebRTC.framework into lib, you need to generate WebRTC.xcframework
The script is here: https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/extra/ios_arch.js
- go to
plugins/cordova-plugin-iosrtc/extrafolder - generate xcframework using:
node ios_arch.js --xcframework