How to debug iOS WebRTC Framework?

Is there some way to debug WebRTC Framework in Xcode? ATM, since the framework is a binary library without source code, debugging is impossible. But is there a way to compile a debuggable library?

I am making a component that will depend on WebRTC’s API and am facing app crashes when using the API.

WebRTC builds are done with this script: https://github.com/react-native-webrtc/react-native-webrtc/blob/master/tools/build-webrtc.py off this repo: https://github.com/jitsi/webrtc/tree/M69

The script has a --debug flag which allows for making debug builds.

3 Likes

Thanks for this wonderful library for react native.

@saghul, Can you help me with the exact command to build this framework?

What I did…
clone https://github.com/jitsi/webrtc/tree/M75 and made some changes into some .mm files
Now I applied “python build_webrtc.py --setup --ios ./” and it created a separate folder “build_webrtc” and then fetched similar code like webrtc ios code files but command worked without error
Then I tried “python build_webrtc.py --build --ios ./” but its now failing at Release-arm64 framework_objs ninja command. I tried many options but nothing works.
Any help appreciated.