Skip to content

Instantly share code, notes, and snippets.

@michaelochs
Created November 23, 2013 13:27
Show Gist options
  • Save michaelochs/7614574 to your computer and use it in GitHub Desktop.
Save michaelochs/7614574 to your computer and use it in GitHub Desktop.
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