Created
April 27, 2017 10:31
-
-
Save youngshook/44efd1bc7c6cc2f60cb701f2b412f12c to your computer and use it in GitHub Desktop.
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
if [ "${ACTION}" = "build" ] | |
then | |
INSTALL_DIR=${SRCROOT}/Products/${PROJECT_NAME}.framework | |
DEVICE_DIR=${BUILD_ROOT}/${CONFIGURATION}-iphoneos/${PROJECT_NAME}.framework | |
SIMULATOR_DIR=${BUILD_ROOT}/${CONFIGURATION}-iphonesimulator/${PROJECT_NAME}.framework | |
if [ -d "${INSTALL_DIR}" ] | |
then | |
rm -rf "${INSTALL_DIR}" | |
fi | |
mkdir -p "${INSTALL_DIR}" | |
cp -R "${DEVICE_DIR}/" "${INSTALL_DIR}/" | |
#ditto "${DEVICE_DIR}/Headers" "${INSTALL_DIR}/Headers" | |
lipo -create "${DEVICE_DIR}/${PROJECT_NAME}" "${SIMULATOR_DIR}/${PROJECT_NAME}" -output "${INSTALL_DIR}/${PROJECT_NAME}" | |
open "${DEVICE_DIR}" | |
open "${SRCROOT}/Products" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment