Last active
August 7, 2016 12:48
-
-
Save nolili/9b4200c17b4724310b2f to your computer and use it in GitHub Desktop.
Build fat binary(simulator/arm with bitcode) for VVOpenSource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /bin/sh | |
# Generate universal 'fat' binary for libVVBasics, libVVOSC, libVVUIToolbox includes Bitcode | |
# Install xctool via homebrew before run this script. | |
# 1. Install homebrew from http://brew.sh | |
# 2. Install xctool $ brew install xctool | |
# 3. Run this script | |
xctool -workspace $PWD/VVOpenSource.xcodeproj/project.xcworkspace --scheme "vvopensource-Build iOS static libs" sdk iphonesimulator -configuration Release OTHER_CFLAGS="-fembed-bitcode -DIPHONE" OBJROOT=$PWD/build SYMROOT=$PWD/build ONLY_ACTIVE_ARCH=NO | |
xctool -workspace $PWD/VVOpenSource.xcodeproj/project.xcworkspace --scheme "vvopensource-Build iOS static libs" sdk iphoneos -configuration Release OTHER_CFLAGS="-fembed-bitcode -DIPHONE" OBJROOT=$PWD/build SYMROOT=$PWD/build ONLY_ACTIVE_ARCH=NO | |
mkdir $PWD/build/Release-universal | |
lipo -create $PWD/build/Release-iphoneos/libVVBasics.a $PWD/build/Release-iphonesimulator/libVVBasics.a -output $PWD/build/Release-universal/libVVBasics.a | |
lipo -create $PWD/build/Release-iphoneos/libVVOSC.a $PWD/build/Release-iphonesimulator/libVVOSC.a -output $PWD/build/Release-universal/libVVOSC.a | |
lipo -create $PWD/build/Release-iphoneos/libVVUIToolbox.a $PWD/build/Release-iphonesimulator/libVVUIToolbox.a -output $PWD/build/Release-universal/libVVUIToolbox.a | |
cp -R $PWD/build/Release-iphoneos/include $PWD/build/Release-universal/include |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment