Skip to content

Commit

Permalink
Merge pull request #106 from mapbox/1ec5-bitcode-1957
Browse files Browse the repository at this point in the history
Adopt Bitcode for iOS
  • Loading branch information
1ec5 committed Jul 29, 2015
2 parents 43db9c9 + e1ec187 commit 41d8b2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mason.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ elif [ ${MASON_PLATFORM} = 'ios' ]; then
MASON_SDK_ROOT=${MASON_XCODE_ROOT}/Platforms/iPhoneOS.platform/Developer
MASON_SDK_PATH="${MASON_SDK_ROOT}/SDKs/iPhoneOS${MASON_PLATFORM_VERSION}.sdk"
export MASON_IOS_CFLAGS="-miphoneos-version-min=${MASON_PLATFORM_VERSION} -isysroot ${MASON_SDK_PATH} -arch armv7 -arch armv7s -arch arm64"
if [[ ${MASON_PLATFORM_VERSION%%.*} -ge 9 ]]; then
export MASON_IOS_CFLAGS="${MASON_IOS_CFLAGS} -fembed-bitcode"
fi

if [ `xcrun --sdk iphonesimulator --show-sdk-version` != ${MASON_PLATFORM_VERSION} ]; then
mason_error "iPhone Simulator SDK version doesn't match iPhone SDK version"
Expand Down

0 comments on commit 41d8b2e

Please sign in to comment.