28

Given a provisioning profile, does anyone know how to determine what UDIDs are in that profile?

Guillaume
  • 21,205
  • 6
  • 60
  • 95
James Testa
  • 2,841
  • 4
  • 39
  • 59

4 Answers4

54

To see which iOS device UDID's are associated to your provisioning profile, use the Terminal command:

security cms -D -i /path/to/MyProfile.mobileprovision

(drag and drop the .mobileprovision file from Finder to the Terminal window to fill in the file path)

Within the command results look for the ProvisionedDevices section for the device UDIDs associated to the profile, such as:

 <key>ProvisionedDevices</key>
<array>
    <string>abab79177cse660edf75b4affe9d87ef2685ade2</string>
    <string>3436dc195c5432f1c22b5a687adfcd350de3af0a</string>
    <string>04589ca69bbde998a72f320s7148290603bc025c</string>
    <string>8a684993a490ebfdf564ef20d5fa38ebfb31b8d7</string>
    <string>16663b95823sf346fc377c3d31a90bc9fcd61d1d</string>
    <string>2e88a9cb3155fc81577c580b86s74351e3f50d5b</string>
    <string>105404f9945627sa24be595015a7cb5655f096f1</string>
    <string>7ea5s4fe4ee0c8d40a18117c446306663fc0bf73</string>
</array>
Bobjt
  • 3,780
  • 1
  • 26
  • 29
  • 1
    this answer should be the answer, sometimes opening the profile with text editor show only binaries. – Ferenc Dajka May 10 '13 at 20:40
  • ... And if there *is* no section called `ProvisionedDevices`, then no devices are included in the profile. – Ben Zotto Jul 08 '13 at 03:03
  • @Ben, Right. No ProvisionedDevices key indicates a distribution profile (either App Store or In House). However, In House profiles contain the ProvisionsAllDevices key. – Bobjt Apr 01 '14 at 23:53
29

Open it up in a text editor. You should be able to see the list of UDID's.

They appear under the key "Provisioned Devices".

Jasarien
  • 57,071
  • 27
  • 154
  • 186
  • Look like you figured it out :) – Jasarien Aug 03 '10 at 20:43
  • is it possible to add a UDID manually in the provisioning file in this case? – vir us Aug 29 '14 at 11:42
  • Not that I know of. The Device needs to be added to the devices section of the Apple portal as well as in the provisioning profile. Also I think there's a cryptographic hash for the profile that is comprised of the provisioned UDIDs. – Jasarien Aug 29 '14 at 12:48
  • Its encrypted. If you open it in TextEditor – WaaleedKhan May 05 '15 at 06:18
  • 3
    It's not encrypted - it's a binary PList, so unless the text editor you're using supports binary PList format, it will be shown in the wrong encoding. – Jasarien May 05 '15 at 08:38
  • It’s hashed and signed by a CA, if you change it, it will fail the validation. – Popmedic Apr 13 '21 at 02:18
5

Sorry for the auto-plug that follows - I'm the author of the mentionned plugin, but felt it was an appropriate answer to this question.

I wrote a QuickLook plugin just for this need.
It gives you a sorted list of all the UDIDs in the profile. When it knows more about a specific UDID, it will allow you to display a pop-up to get more information about the device.

It is also an easy way to get access to other useful informations about the profile: creation and expiration date, App ID, profile name...

Download it here.

Screenshot of the plugin

Guillaume
  • 21,205
  • 6
  • 60
  • 95
2

Another QuickLook plug-in I use is ProvisionQL.

https://github.com/ealeksandrov/ProvisionQL

It provides the QuickLook feature for provisioning profiles!

provisioning profie example

Check out more screenshots for how it work: https://github.com/ealeksandrov/ProvisionQL/blob/master/screenshots.md

Mark Norgren
  • 1,954
  • 6
  • 27
  • 29