Skip to content

Developing iOS apps

stefanalund edited this page Oct 26, 2014 · 20 revisions

This page shows how to get started developing iOS apps for OpenWebRTC. There are basically 3 different kinds of apps:

  • Native - Low-level apps that use the OpenWebRTC C API.
  • Hybrid - Apps that use a combination of native code (Objective-C or Swift) and HTML/JavaScript running in web views.
  • Web - Web apps that use WebRTC JavaScript API. These apps can run in Bowser and other WebRTC enabled browsers.

The remainder of this page will focus on native and hybrid apps. If you are developing a web app for Bowser, or have an existing WebRTC web app that you want to run in Bowser, please go to the Developing for Bowser page.

Step 1. Building OpenWebRTC

Before you can add OpenWebRTC to your Xcode project, you need to build it.

Step 2. Adding OpenWebRTC to your project

2.1 Adding framework dependencies

The following Frameworks needs to be added to your project:

  • CoreMedia.framework
  • AssetsLibrary.framework
  • AudioToolbox.framework
  • AVFoundation.framework
  • CoreAudio.framework
  • CoreGraphics.framework
  • CoreVideo.framework
  • JavaScriptCore.framework
  • QuartzCore.framework
  • GLKit.framework
  • VideoToolbox.framework

Apart from the Frameworks you need to also add the following dynamic libs:

  • libiconv.dylib
  • libresolv.dylib
  • libc++.dylib

2.2 32-bit architecture OpenWebRTC currently only supports 32-bit iOS apps. You therefore need to remove armv7s and arm64 and change Architectures to $(ARCHS_STANDARD_32_BIT):

Step 3. Native or Hybrid?

Clone this wiki locally