Reputation: 10896
Anyway to match the provisioning profile in Xcode's organizer or online developer site with the crazy serial/id number given under Xcode's code signing preferences?
I want to make double sure I am building my app with the correct (Ad Hoc) provisioning profile -- Xcode gives me a long ID (as seen above), but the online developer site and the Xcode preferences that list my provisioning profiles don't list this number.
Upvotes: 19
Views: 26579
Reputation: 527
I couldnt find a Windows answer anywhere, so here it is:
If you using windows, you can just open the downloaded provisioning profile with a text editor (I used Notepad++) to identify privisioning profile's UUID
Upvotes: 1
Reputation: 1137
This clue is buried in a comment by wcochran but if all you need is to view the UUID of the mobileprovision file run this:
grep -a -A 1 'UUID' <PATH_TO_MOBILEPROVISION_FILE>
That will print something like:
<key>UUID></key>
<string>1a1a1a1a-2b2b-3c3c-4d4d-5e5e5e5e5e5e</string>
With the value between the <string>
tags being the UUID you need.
You can also open the file in vim
or some other text editor that doesn't mind non UTF-8 chars. (Brackets doesn't work for this reason).
Upvotes: 27
Reputation: 4533
What's being displayed in Xcode is the guaranteed to be unique UUID of the provisioning profile. To verify that it is the profile you want. Go to the Apple Developer "Certificates, Identifiers & Profiles" site.
You can create new certificates in the the portal but it is way easer to use Xcode. (I personally would not use the Beta Xcode 6 and all the following screenshots are from Xcode 5.1) As you can see my Testflight distribution certificate and provisioning profile have expired. Expired certificates are not a huge problem they do not affect your apps in the store. The apps people buy are signed by Apple. You have to sign the app to submit it for review to prove the app came from you. It could be a problem if the certificate expires while your in review, but all you need to do is resubmit. If your Ad Hoc distributed app certificate expires then your beta testers will no longer be able to run it. You will have to distribute them all a new version with a new certificate and updated provisioning profile.
This will take some time, ~ 30 sec ? be patient
Success
It’s just security and private key/public key cryptography. Like setting up ssh keys the devil is in the details. One thing missing, one incorrect permission, one bit changed and nothing works.
Reference: Apple's Application Distribution Guide - https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/AppDistributionGuide.pdf
Upvotes: 22
Reputation: 13333
This is a very handy tool: https://github.com/chockenberry/Provisioning
It's a Quick Look plug-in that lets you view the info about a .mobileprovision profile file, including its UUID. Another bonus is that it will show you the devices that are configured for that profile file.
Upvotes: 3