Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dermdaly committed Apr 18, 2011
0 parents commit 07afc81
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README
@@ -0,0 +1,10 @@
This is a simple script that can be used to list the devices an ipa file
has been signed to work against
to use:
./listdevs.sh <ipa file>
The output will be a list of UDIDs that are contained in the embedded
mobileprovisioning file contained within the ipa

Enjoy

-- Team Tapadoo
11 changes: 11 additions & 0 deletions listdevs.sh
@@ -0,0 +1,11 @@
IPAFILE=$1
TMPDIR=tmp$$.tmp
mkdir $TMPDIR
unzip -qq $IPAFILE -d $TMPDIR
EMBEDFILE=`find $TMPDIR -name embedded.mobileprovision -print | head -1`
echo $EMBEDFILE
EMBEDFILEONLY=$EMBEDFILE.plist
sed -n '/plist/,/\/plist/p' $EMBEDFILE > $EMBEDFILEONLY
sed -n '/ProvisionedDevices/,/\/array/p' $EMBEDFILEONLY | grep string | sed 's/<[/]*string>//g'
rm -rf $TMPDIR

0 comments on commit 07afc81

Please sign in to comment.