Created
February 6, 2018 13:30
-
-
Save deszip/e303f9e0b37b8539aba91f6c0dfac57e to your computer and use it in GitHub Desktop.
Building SDK on Bitrise
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
# Build x86 and arm alices | |
xcodebuild -workspace MySDK.xcworkspace -scheme MySDK -configuration Release -derivedDataPath $BITRISE_DEPLOY_DIR/iphoneos -sdk iphoneos clean build | |
xcodebuild -workspace MySDK.xcworkspace -scheme MySDK -configuration Release -derivedDataPath $BITRISE_DEPLOY_DIR/iphonesimulator -sdk iphonesimulator clean build | |
# Create a fat binary | |
mkdir $BITRISE_DEPLOY_DIR/fat | |
cp -R $BITRISE_DEPLOY_DIR/iphoneos/Build/Products/Release-iphoneos/MySDK.framework $BITRISE_DEPLOY_DIR/fat | |
lipo -create $BITRISE_DEPLOY_DIR/iphoneos/Build/Products/Release-iphoneos/MySDK.framework/MySDK $BITRISE_DEPLOY_DIR/iphonesimulator/Build/Products/Release-iphonesimulator/MySDK.framework/MySDK -output $BITRISE_DEPLOY_DIR/fat/MySDK.framework/MySDK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment