Skip to content

Instantly share code, notes, and snippets.

@airdrummingfool
Forked from michaelochs/lazy-copy-reveal.sh
Last active January 28, 2016 07:00
Show Gist options
  • Save airdrummingfool/9557257 to your computer and use it in GitHub Desktop.
Save airdrummingfool/9557257 to your computer and use it in GitHub Desktop.
#!/bin/bash
# copy_reveal.sh
# Ref: https://gist.github.com/airdrummingfool/9557257
APPBUNDLEPATH="${TARGET_BUILD_DIR}/${EXECUTABLE_NAME}.app/"
REVEALFRAMEWORKPATH="/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib"
if [ -f "${REVEALFRAMEWORKPATH}" ] && [ "${CONFIGURATION}" == "Debug" ]; then
echo "Copying Reveal dylib from ${REVEALFRAMEWORKPATH} to ${APPBUNDLEPATH}."
cp "${REVEALFRAMEWORKPATH}" "${APPBUNDLEPATH}"
set -e
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY_NAME}" ]; then
echo "Code-signing with ${EXPANDED_CODE_SIGN_IDENTITY_NAME} at ${BUILT_PRODUCTS_DIR}/${FULL_PRODUCT_NAME}/libReveal.dylib."
codesign -fs "${EXPANDED_CODE_SIGN_IDENTITY_NAME}" "${BUILT_PRODUCTS_DIR}/${FULL_PRODUCT_NAME}/libReveal.dylib"
fi
fi
@airdrummingfool
Copy link
Author

To use this in a project, follow the instructions at https://gist.github.com/airdrummingfool/9557081

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment