Skip to content

Instantly share code, notes, and snippets.

@mman
Created March 7, 2014 12:03

Revisions

  1. mman created this gist Mar 7, 2014.
    10 changes: 10 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # 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}