Creating WebRtc on iOS

I was able to successfully build WebRTC on the MAC in accordance with these instructions: http://www.webrtc.org/reference/getting-started

Has anyone successfully built it on iOS? I understand that someone (arik) successfully built it on iOS: https://groups.google.com/forum/#!msg/discuss-webrtc/VJg-fk2-i_0/dtG200DOzsgJ But the steps are not clear.

Can someone (who built on ios) summarize the steps so that it is useful to everyone who is trying to do it in the future?

+4
source share
4 answers
+1
source

I wrote a detailed blog post with all the instructions on how to create an iOS application for the WebRTC example, as well as how to run it on the iOS simulator or on the iOS device itself. You can look here to read the details, this is a rather lengthy process.

+3
source

I have been working in this space for the past few months - webrtc on iOS is not easy. To help this problem, I added a github repository with a working example and iOS application using webrtc.

https://github.com/gandg/webrtc-ios

The site also links to a Google site, so it should be a useful starting point.

+2
source

Yes, compiling for iOS was a very painful task ... especially for its work in Xcode.

Here is my attempt to get AppRTC Demo for ios

Clone / Pull: https://github.com/pristineio/webrtc-build-scripts

After getting the repo, open the xcode project in the ios directory. Set the target to the WebRTC dance, and then complete. At this point, the scripts will update depot_tools and do all the dirty work (pull, modify, build) so that your AppRTCDemo target can resolve the missing files and execute.

Once this is completed, you can change the target to the AppRTC Demo using a simulator or a real device, click on it and execute it. There, more information is contained in the manual associated with it and is updated in readme.

If you're curious about what's happening under the hood, see the build.sh file in the ios directory of the git repository. A dance function is what actually performs for you when you choose WebRTC Dance.

It’s not easy to describe the build process (too much going on), but the build script repository should definitely point you in the right direction and help you get AppRTCDemo on ios β€œjust”

There also appeared a video of Google developers here, where they are trying to break the build process so that you can create ios (the name youtube is misleading).

Also, I just added cocoapods support for ios webrtc, add this to your subfile,

pod "libjingle_peerconnection" # Add this to the bottom so it won't have issues with active architecture post_install do |installer_representation| installer_representation.project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' config.build_settings['VALID_ARCHS'] = ['armv7', 'i386'] end end end 

Not all versions are built, so check out the kokodaki for which versions are available.

+2
source

All Articles