Created
November 28, 2013 07:33
-
-
Save kukat/7688445 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
| #!/bin/bash | |
| if [ $# == 1 ] | |
| then | |
| echo "UDIDs inside IPA: $1" | |
| unzip -p "$1" Payload/\*.app/embedded.mobileprovision | grep -a "[a-f0-9]\{40\}" | |
| elif [ $# == 2 ] | |
| then | |
| echo "Searching UDID: '$2' inside: '$1'" | |
| unzip -p "$1" Payload/\*.app/embedded.mobileprovision | grep -a "[a-f0-9]\{40\}" | tr -d ' ' | grep "$2" | |
| fi |
Author
Author
NOTE
- You can open and view provisioning profile (
.mobileprovision) using text editors. - Or using QuickLook plugins:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
List all UDIDs that included in xxx.ipa
Output:
Check whether one UDID is included
Output: