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
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/extra
folder - generate xcframework using:
node ios_arch.js --xcframework