Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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