Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This script copies the Reveal library in your .app file on build time as long as you have Reveal installed and you are not building the configuration 'ReleaseAppStore'. For more info please see my blog post: http://ios-coding.com/improved-way-to-integrate-reveal/
#!/bin/sh
APPBUNDLEPATH="${TARGET_BUILD_DIR}/${EXECUTABLE_NAME}.app/"
REVEALFRAMEWORKPATH="/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib"
if [ -f "${REVEALFRAMEWORKPATH}" ] && [ "${CONFIGURATION}" != "ReleaseAppStore" ]; then
cp "${REVEALFRAMEWORKPATH}" "${APPBUNDLEPATH}"
fi
@sergioutama
Copy link

Shouldn't you put ["${CONFIGURATION}" == "Debug"] instead ?
Because default configuration use Debug and Release

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