Created
September 29, 2016 12:08
-
-
Save oboje/c34d609987e46a7c4a888bba9d0ad22d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1 | |
/usr/libexec/PlistBuddy -c "Set :GIT_COMMIT_HASH `git rev-parse HEAD`" "${TARGET_BUILD_DIR}"/"${INFOPLIST_PATH}" | |
# 2 | |
[[NSBundle mainBundle] infoDictionary][@"GIT_COMMIT_HASH"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment