Skip to content
WangBin edited this page Feb 3, 2018 · 2 revisions

Supported host Platforms:

  • macOS

To build universal library contains multiple architectures (default are armv7, arm64, i386, x86_64), run ./avbuild.sh ios[version] "arch1 arch2 ..."

version is min deployment target version. The default version is 5.0 for 32bit and 7.0 for 64bit. Leave it empty to use default version

export FFSRC=/path/to/ffmpeg      # if no ffmpeg source fold under this dir
./avbuild.sh ios                  # armv7, arm64, i386, x86_64. destination dir is sdk-ios
./avbuild.sh ios8.0 "armv7 arm64" # build for armv7 and arm64, min supported version is ios8.0. destination dir is sdk-ios
./avbuild.sh ios "arm64"          # build for arm64 only, destination dir is sdk-ios-arm64

The result libraries are in sdk-ios for multiple architectures build.

Bitcode is enabled for devices by default. Bitcode can be disable by environment var BITCODE=0, for example run BITCODE=0 ./avbuild.sh ...