Skip to content

Instantly share code, notes, and snippets.

@alex-cellcity
Created January 8, 2013 09:08
Show Gist options
  • Save alex-cellcity/4482378 to your computer and use it in GitHub Desktop.
Save alex-cellcity/4482378 to your computer and use it in GitHub Desktop.
search udid inside .ipa file
#!/bin/bash
if [ $# == 1 ]
then
echo "UDIDs inside IPA: $1"
unzip -p "$1" Payload/\*.app/embedded.mobileprovision | grep -a "[a-z0-9]\{40\}"
elif [ $# == 2 ]
then
echo "Searching UDID: '$2' inside: '$1'"
unzip -p "$1" Payload/\*.app/embedded.mobileprovision | grep -a "[a-z0-9]\{40\}" | tr -d ' ' | grep "$2"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment