Skip to content

Instantly share code, notes, and snippets.

@mrichie
Created April 12, 2013 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrichie/5371841 to your computer and use it in GitHub Desktop.
Save mrichie/5371841 to your computer and use it in GitHub Desktop.
merge debug framework and release framework
# Set the target folders and the final framework product.
INSTALL_DIR=~/Desktop/EDoc
DEVICE_DIR=~/Desktop/1EDocWidget.framework
SIMULATOR_DIR=~/Desktop/2EDocWidget.framework
# Create and renews the final product folder.
mkdir -p "${INSTALL_DIR}"
# Copy the header files to the final product folder.
ditto "${DEVICE_DIR}/Headers" "${INSTALL_DIR}/Headers"
# Use the Lipo Tool to merge both binary files (i386 + armv6/armv7) into one Universal final product.
lipo -create "${DEVICE_DIR}/EDocWidget" "${SIMULATOR_DIR}/EDocWidget" -output "${INSTALL_DIR}/EDocWidget"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment