Skip to content

Instantly share code, notes, and snippets.

@walm
Last active August 29, 2015 14:07
Show Gist options
  • Save walm/a70c311c5922cd4be9e7 to your computer and use it in GitHub Desktop.
Save walm/a70c311c5922cd4be9e7 to your computer and use it in GitHub Desktop.
Bundle Identifier as environment var (Xcode build script)
# Apples build env's https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html
#
ROOT_PRODUCT_IDENTIFIER_PLIST=`/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" $INFOPLIST_FILE`
export ROOT_PRODUCT_IDENTIFIER=`eval echo $ROOT_PRODUCT_IDENTIFIER_PLIST`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment