Skip to content

Instantly share code, notes, and snippets.

@deszip
Created February 6, 2018 13:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deszip/e303f9e0b37b8539aba91f6c0dfac57e to your computer and use it in GitHub Desktop.
Save deszip/e303f9e0b37b8539aba91f6c0dfac57e to your computer and use it in GitHub Desktop.
Building SDK on Bitrise
# 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