Created
April 12, 2013 13:02
-
-
Save mrichie/5371841 to your computer and use it in GitHub Desktop.
merge debug framework and release framework
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
# 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