Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:Anakros/WebRTC
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey committed Jul 20, 2017
2 parents 61e88f1 + 0dbb9ac commit 3a38241
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# WebRTC iOS framework

![](https://img.shields.io/cocoapods/v/WebRTC.svg?maxAge=100) ![](https://img.shields.io/cocoapods/dw/WebRTC.svg?maxAge=100)
![](https://img.shields.io/cocoapods/l/WebRTC.svg?maxAge=100)

[__!!!__] Please report all WebRTC related (not specific to this binary build) bugs and questions to [discussion group](https://groups.google.com/forum/#!forum/discuss-webrtc) or [official bug tracker](https://bugs.chromium.org/p/webrtc/issues/list)

# Contents

- [Installation](#installation)
- [Unstable versions](#unstable-versions)
- [Usage](#usage)
- [Bitcode](#bitcode)
- [Information](#information)
- [Links](#links)

# Installation
Check the [Bitcode](#bitcode) section first to avoid linker errors!

__Cocoapods__ (add to Podfile):

Expand All @@ -32,18 +29,6 @@ __Manual__: just download framework from [the latest release](https://github.com

>You can only use the binary release, because the whole WebRTC repository takes ~12Gb of disk space
## Unstable versions

__Cocoapods__ (will install specified unstable version or _any_ higher version):
```ruby
pod "WebRTC", ">= 56.0.14835-beta"
```

__Carthage__ (there is no way to auto-update to the latest unstable version at the current moment, so you should specify [corresponding version tag](https://github.com/Anakros/WebRTC/tags)):
```
github "Anakros/WebRTC" "56.0.14835-beta"
```

# Usage

## Swift
Expand All @@ -68,11 +53,29 @@ NSLog(@"%d", RTCInitializeSSL());
# Bitcode
Bitcode isn't supported in the upstream for now. So you should disable it in the project build settings.
Bitcode isn't supported in the upstream for now. So you should disable it:
Go to your project's settings and find the *Build settings* tab, check *All* and search for *bitcode*, then disable it.
# Information
Built from `https://chromium.googlesource.com/external/webrtc/` using `webrtc/build/ios/build_ios_libs.sh` script without any modifications.
Built from `https://chromium.googlesource.com/external/webrtc/` using `tools_webrtc/ios/build_ios_libs.py` script with following modifications (to enable x86 architecture):
```diff
diff --git a/tools_webrtc/ios/build_ios_libs.py b/tools_webrtc/ios/build_ios_libs.py
index 734f3e216..e6f250c97 100755
--- a/tools_webrtc/ios/build_ios_libs.py
+++ b/tools_webrtc/ios/build_ios_libs.py
@@ -165,8 +165,6 @@ def main():
# Ignoring x86 except for static libraries for now because of a GN build issue
# where the generated dynamic framework has the wrong architectures.
- if 'x86' in architectures and args.build_type != 'static_only':
- architectures.remove('x86')
# Build all architectures.
for arch in architectures:
```

# Links

Expand Down

0 comments on commit 3a38241

Please sign in to comment.