Skip to content

OnBeep/Opus-iOS

 
 

Repository files navigation

Building the Library

Specify libopus and iOS SDK Version

  1. $ git clone [email protected]:OnBeep/Opus-iOS.git
  2. $ vim build-libopus.sh Ensure the VERSION, SDKVERSION and MINIOSVERSION variables are set to the desired environment.

iOS build scripts for the Opus Codec.

Usage

  1. (Objective-C) Build the static library
  2. (Optionally for Swift) Build the framework
  3. (Optionally) Use the CocoaPod spec

Building the Static Library

Step 1

Download the latest stable tar file and place it into the build/src directory

Note: If it's a new version of opus or if the iOS SDKs changed since the last time you built it, update that version at the top of the build-libopus.sh file.

Step 2

From the command line, run:

$ ./build-libopus.sh

That will take the tar file and build the static library in a directory called dependencies

Step 3

Follow the steps above for building the framework from the static library

Building the Framework

Step 1

Open the opus/opus.xcodeproj file, select UniversalTarget with a Generic iOS Device

Step 2

Build the framework by pressing Run; this will overwrite the framework in the repo root.

Note: this runs a custom build script within Build Phases that will build a universal framework with both simulator and device slices

If we have issues with submitting to the app store w/ the extra simulator slices, view this: http://arsenkin.com/ios-universal-framework.html / http://stackoverflow.com/a/30866648/308315

Step 3

Ensure the framework includes slices for both simulator and device architectures (x86_64 i386 armv7 armv7s arm64)

$ lipo -info opus.framework/opus

License

MIT

About

iOS build scripts for libopus

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 95.1%
  • Shell 3.9%
  • Ruby 1.0%