Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Did Apple change the .mobileprovision file format, and how can I view the current format?

Tags:

I'm finding many articles on the web where it is implied that you can view the .mobileprovision file contents in a text editor. For example, this Urban Airship post:

When push notifications are enabled for an app, the aps-environment key will appear in the .mobileprovision file specifying the provisioning profile:

<key>Entitlements</key> <dict>     <key>application-identifier</key> ... 

However the mobilprovision files I have (obtained within the last few days) contain 466 1/2 rows of 8 groups of 4 hex digits, (e.g. 4851 3842 4176 2845 0a09 01a2 404d 4382). How can I view this type of file?

like image 392
jwl Avatar asked Jun 12 '12 00:06

jwl


People also ask

Where are provisioning profiles stored on Mac?

All your provisioning profiles should be located in ~/Library/MobileDevice/Provisioning Profiles .

How do I check my provision profile?

You can check your provisioning profile in AppStore Connect to see if the service is active. This is the easiest, but you can only depend on this method if you are 100% sure that your provisioning profile was not modified after you built your app. If you are unsure of this, option 2 will tell you for sure.

What is a provisioning file?

Provisioning files provide an easy way to deploy enterprise single-use licenses in an enterprise environment by prepopulating user and authorization information in the Software Authorization Wizard.


1 Answers

Provisioning Profiles are encoded. To decode them and examine the XML you can use this via command line:

security cms -D -i #{@profilePath}

where #{@profilePath} is the filepath to your .mobileprovision file.

A fuller Ruby example is:

require 'plist' profile = `security cms -D -i #{@profilePath}` xml = Plist::parse_xml(profile) appID = xml['Entitlements']['application-identifier'] 
like image 185
Alfie Hanssen Avatar answered Jun 11 '23 03:06

Alfie Hanssen