Last active
December 20, 2015 07:29
-
-
Save shazron/6093221 to your computer and use it in GitHub Desktop.
List app ids contained in Provisioning Profiles installed on your system. So you can grep for a bundle id.
This file contains 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 | |
# You could also launch Xcode Organizer directly to the Provisioning Profiles section (to check for validity) by running: | |
# open ~/Library/MobileDevice/Provisioning\ Profiles/* | |
# | |
# In Xcode 5, you can't get a whole list anymore in Xcode Organizer - you will need to download the iPhone Configuration Utility. | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
FILES=~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision | |
LIST= | |
for f in $FILES | |
do | |
LIST+=`security cms -D -i "$f" > tmp.plist && /usr/libexec/PlistBuddy -c 'Print :Entitlements:application-identifier' tmp.plist` | |
LIST+=", " | |
LIST+=`/usr/libexec/PlistBuddy -c 'Print :ExpirationDate' tmp.plist` | |
LIST+=", " | |
LIST+=$(basename $f) | |
LIST+="\n" | |
done | |
IFS=$SAVEIFS | |
echo -en $LIST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment