Can't select a provisioning profile (it doesn't appear in the drop down)

When developing an app, my "development provisioning profiles" are not showing up in Xcode, so I cannot select them.

They are in the ~/Library/MobileDevice/Provisioning Profiles folder.

Another member of my team has no problems selecting the same .mobileprovision file from inside her Xcode.

The profile was created by me with both of our developer certs checked.

We are using the same project and with screensharing the only thing we can see that is different is that she has an iPhone connected at the time of the profile selection. I don't actually have an iPhone yet, so I have nothing to connect.

Is it required that you actually have an iPhone OS device connected when running Xcode in order to select a provisioning profile for the build? I can't imagine why that would be so, but I can't figure out why the profile isn't showing up in the select drop-down.

I would appreciate any suggestions.

Thanks!

doug

MBP C2D 17", Mac OS X (10.5), 3.0 GB RAM

Posted on Aug 22, 2008 12:27 AM

Reply
6 replies

Aug 22, 2008 1:28 AM in response to Doug Lerner2

Not sure if this is the cause but try making sure these conditions are fulfilled:

*You are indeed properly included as developer in the provisioning profile
*In XCode Build-settings under Code Signing->Code Signing Identity->Any Iphone Device you have the following String:"iPhone Developer: YOURNAME"
case matters as it seems, your name should be written as in the provisining profile.
(*All your certificates are properly part of the keychain)

If thats all okay the usual thing to try out is restart XCode/MacOSx, doing the above things was what fixed it for me.

Message was edited by: Max Ullinger

Aug 22, 2008 2:14 AM in response to Max Ullinger

Thanks for your reply, Max.

Regarding your checklist:

You are indeed properly included as developer in the provisioning profile


I am indeed. There are just two developer certificates, the profile shows "2" certs and when I check the profile using "modify" my name "Doug Lerner" is listed as one of them.

In XCode Build-settings under Code Signing->Code Signing Identity->Any Iphone Device you have the following String:"iPhone Developer: YOURNAME"


Actually, in my friend's Xcode, she said when she tried that it STOPPED working. But as per your suggestion I tried that just now, correct case, with and without a space after the ":" and stopping and restarting Xcode, but still, to no avail.

All your certificates are properly part of the keychain


Well, this is an interesting question that hasn't come up yet. My own developers cert was created using a request string generated from my keychain utility. I took the string and requested the certificate in the Certificates panel in the portal. And the certificate shows it is using the provisioning profile in question. So, is that enough, or is there something else I needed to do after downloading the certificate. Maybe that is a step I am missing!

Thanks,

doug

Aug 22, 2008 2:26 AM in response to Max Ullinger

Max, I can't thank you enough!

I apparently completely overlooked the part about "installing the downloaded cert in my keychain".

I did that and, voila, it started appearing in my popup menu. I also made sure to set the iPhone Developer name as you suggested.

So it seems I should be able to proceed from here now!

One question if you don't mind. In the instruction section I had previously overlooked, it says:

1. In the ‘Certificates’-->’Distribution’ section of the Portal, control-click the WWDR Intermediate Certificate link and select “Saved
Linked File to Downloads” to initiate download of the certificate.
2. On your local machine, double-click the WWDR Intermediate certificate to launch Keychain Access and install.
3. Upon CSR approval, Team Members and Team Admins can download their certificates via the ‘Certificates’ section of the
Program Portal. Click ‘Download’ next to the certificate name to download your iPhone Development Certificate to your local
machine.
4. On your local machine, double-click the downloaded .cer file to launch Keychain Access and install your certificate.
5. Team Members can only download their own iPhone Development Certificates. Team Admins have the authority to
download the public certificates of all of their Team Members. Apple never receives the private key for a CSR. The private keys
are not available to anyone except the original key pair creator and are stored in the system keychain of that Team Member.

I didn't do (1) and (2), just (3) and (4). What is that WWDR Intermediate Certificate about and how important is it for what I am doing? What is the purpose of the WWDR Intermediate Certificate?

Aug 22, 2008 2:33 AM in response to Doug Lerner2

[EDIT: This reply seems to be redundant, see answer below!]

If I am not mistaken (I dont do this for long either ;)) you need the following certificates/keys:

*Certificate: "iPhone Developer: YOURNAME"
*Public/Private Keypair that you used to get your certificate
*Certificate: "Apple Worldwide Developer Relations Certification Authority"

Do you have these in there? Maybe compare your Keychain to the one of your friend and see if there are differences.

Message was edited by: Max Ullinger

Aug 22, 2008 2:37 AM in response to Max Ullinger

Thanks for your help, Max. You got me to look at what I had overlooked and the setting seems to work now.

It seems, by the way, that in order to distribute a test build to somebody that all you need to give them is the build and the provisioning profile for that build that includes their device.

And the only thing you need to change in Xcode to generate the build appears to be the active SDK (change from simulator to device) and make sure the provisioning profile is selected.

There was other stuff in the instructions about a new Entitlements.plist, but even without doing that the app seems to install and run. Maybe just because the app is so simple and doesn't need it?

Anyway, thanks!

doug

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't select a provisioning profile (it doesn't appear in the drop down)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.