Skip to content

Instantly share code, notes, and snippets.

@wdragen
Last active August 29, 2015 14:01
Show Gist options
  • Save wdragen/edfc4bc60e3542fe986c to your computer and use it in GitHub Desktop.
Save wdragen/edfc4bc60e3542fe986c to your computer and use it in GitHub Desktop.
find ios mobileprovision file uuid
# double click your downloaded mobileprovision file firstly.
# And xcode will copy it to the ~/Library/MobileDevice/Provisioning\ Profiles directory with uuid as its file name
provision_file="file path to your mobileprovision"
export target_md5="$(md5 -q $provision_file)";find ~/Library/MobileDevice/Provisioning\ Profiles '*.mobileprovision' -print0|xargs -0 md5|grep $target_md5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment