Skip to content

Instantly share code, notes, and snippets.

@biappi
Created May 10, 2013 10:05
Show Gist options
  • Select an option

  • Save biappi/5553552 to your computer and use it in GitHub Desktop.

Select an option

Save biappi/5553552 to your computer and use it in GitHub Desktop.
profile_id_from_file() {
test -e "$1" || die "Provisioning profile file '$1' not found"
local TMP_FILE=`mktemp -t buildscript`
security cms -D -i $1 > $TMP_FILE
/usr/libexec/PlistBuddy -c 'Print :UUID' $TMP_FILE
rm $TMP_FILE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment