tags:

views:

238

answers:

3

I'm building an application that search and recognizes any iPhone apps that user has in his/her computer. I would like to know a way to "extract" the id of the application from the .ipa file.

I was trying to do the recognition using only the App File Name, but I discovered that the File Name is not the name of the app in Apple Store. Live Poker 6K Free by Zynga != Live Poker 3.7.ipa

The id i'm talking about is the app id, like in, http://itunes.apple.com/app/live-poker-6k-free-by-zynga/id354901953?mt=8 the id is 354901953.

Does any body has a clue how can I manage to find this information?

+2  A: 

An IPA is just a ZIP archive. When you unzip it you'll find an iTunesMetadata.plist which should contain all info you need.

KennyTM
KennyTM, I already unzipped the .ipa but I couldn't find the iTunesMetadata.plist you told. Instead I found an Info.plist and this one doesn't have the numeric id I'm looking for.
Rafael Oliveira
Found the iTunesMetadata.plist. I was looking inside the Payload Folder, and it goes to the same folder that the .ipa is (Mobile Applications).The field on the .plist is itemId.Thanks guys!
Rafael Oliveira
+1  A: 

I don't think that IPA contain this value. It look like that this id is generated on apple server.

Skie
So there's no way to find it on a local machine to identify user apps ?
Rafael Oliveira
+1  A: 

That App ID is generated whenever you create the app in iTunes Connect (even before you upload the binary) and exists separately from your app bundle. I'm guessing the iTunesMetadata.plist file is only modified by iTunes Connect after you've submitted your binary

nduplessis