stasel / WebRTC-iOS

A simple native WebRTC demo iOS app using swift
Apache License 2.0
1.12k stars 241 forks source link

Interesting: MacOS Support #54

Open lurein opened 4 years ago

lurein commented 4 years ago

Hey Stasel, what would it take to get this to work for MacOS apps too? currently it won't work since the GoogleWebRTC pod doesn't support macOS

SimonTheCat commented 4 years ago

You may build own binary https://webrtc.googlesource.com/src/+/refs/heads/master/docs/native-code/ios/index.md https://github.com/stasel/WebRTC-iOS/issues/19#issuecomment-579498664 gn gen out/macos_bin --args='target_cpu="x64"' ninja -C out/macos_bin AppRTCMobile

stasel commented 4 years ago

Thanks @SimonTheCat for the response, I think the only option for you is either find a 3rd party pre-compiled lib that supports x64 or compile it yourself.

It's actually not very hard to compile it yourself and there is a great guide on WebRTC's website how to do so.

On another note, It seems like Google stopped maintaining their pod so I guess we need to find another way to bring native WebRTC lib to our apps.