Automatically builds libav as universal frameworks for iOS and iOS simulator.
Make sure you have Xcode and It's command line tools installed before running this script.
Download the latest version of libav (this script was last tested with version 12). Extract the zip/tarball.
Clone this repo and copy all .sh
files to the directory where you extracted libav.
git clone https://github.com/insidegui/libav-ios-build.git
If you want to enable/disable features or customize other build settings, open the appropriate build script (build_armv7
, build_x86
, etc...) and change the settings you want. By default the frameworks are built with support for iOS 8.0 and up using the latest SDK available.
Run ./BuildAllFrameworks.sh
and wait (it can take a long time, even on a powerful machine).
The frameworks will be in the Frameworks
folder, just link them to your iOS app and happy coding :)