Skip to content

Instantly share code, notes, and snippets.

@mman
Created March 7, 2014 12:03
Show Gist options
  • Save mman/9410268 to your computer and use it in GitHub Desktop.
Save mman/9410268 to your computer and use it in GitHub Desktop.
Example Run Script build phase for Xcode 5 to invoke objc-identifierconstants automatically for all storyboards present in a project
# try to find the built debug version of the script
# this is for normal builds
script="${BUILT_PRODUCTS_DIR}/../Debug/objc-identifierconstants"
# if nonexistent, try to find the archived version
if ! test -x ${script}; then
script="${INSTALL_ROOT}/usr/local/bin/objc-identifierconstants"
fi
${script} -6 -o ${PROJECT_DIR}/DerivedSources -f ${PROJECT_DIR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment