trouble with distribution provisioning profile

folks,

i am super stuck. i am trying to build my app for distribution and i followed the steps on the distribution page, but when i get to the drop down for a "code signing provisioning profile" i get nothing in the drop down. i have tried installing leopard again on a different machine and generating a whole new distribution cert with a new app and distribution provisioning profile. i've even tried a brand new project. still the list remains empty.

any suggestions?

john

mac book pro

Posted on Jul 1, 2008 5:57 AM

Reply
23 replies

Jul 1, 2008 8:06 PM in response to johne-dm

I'm having the same issue, but I'm unclear how you solved the problem? Where do I "export" my private key? The Keychain Access app? Sorry to be daft--I find all these certificates and provisioning profiles confusing... My distribution profile shows up in the Organizer window, but is grayed out. Then, when I set my Code Sign Identity in the Build Info window of Xcode, nothing appears in the drop below (like you describe). Can you be more verbose as to how to solve this problem? Thanks.

Jul 1, 2008 8:54 PM in response to sblessing

well... you might want to "start over". i looked in key chain. look at your "keys". you should see one private key (usually with your name... "common name") that is associated with your cert (it has an arrow that if you expand, you'll see your cert). if you don't see that... then i'd create a new one. to do that:

1. from the program portal, "revoke" your current cert (under the certs/distrib tab).
2. go to key chain and "request cert" as per the instructions.
3. after you revoke, it'll take a bit to get the "add new cert" button active again, but it'll come. once it does, press it and paste your request in the box.
4. submit, download the cert when it is ready (you have to approve it if you are the admin of the account) and install it in key chain. then.. you should she your "private key" associated with your cert.
5. put your cert in your build props for dristro. i used: "iPhone Distribution: John Ellis"
6. recreate and download and install your provisioning profiles... i dragged them into the folders by hand... i heard others had trouble with installing them through the xcode. i put them in ~/Library/MobileDevice/Provisions
6. clean and build the distro config (i'm not sure why, but my provisioning profiles didn't show up for the first time until after i compiled it)... also, when you compile, it should prompt you with the key chain "allow" dialog to allow access to your private key.
7. once i compiled... i was then able to select my provisioning profile. i made sure that my bundle id matched the app id that i used in my provisioning profile, but without the random number generated on the front: ie. com.standardwidget.itoony, but my app has only been sucessfully uploaded, not yet "accepted", so i'm still not sure that part was right.

hope that helps a bit.

Jul 2, 2008 3:39 PM in response to johne-dm

Help for anyone else who can't get their profiles to show up in Xcode, and stayed up half the night fiddling with it: Use this debugging step to see if your distribution certificate is installed properly.

Open Certificate Assistant, Look under "Categories" on the left, and click on Keys.
You should see (at least) two keys with your name, and a triangle next to them.
Open the triangles to see the Certificates installed under those keys.
If you do not see your "iPhone Distribution: Your Name" as a child of one of those keys, you need to follow the instructions above to revoke your certificate, make a new cert request, and etc etc. (Re-installing my old certs did not help me - I had to revoke and re-create.)

Mine still don't show up in XCode, but at least you're a step closer.

Hope this helps! Get some sleep!

Jul 2, 2008 3:47 PM in response to xsmasher

Final step! Create your Distibution Provisioning Profile in the portal, download, drag it onto the xcode icon.

In the build settings, Set your code-signing identity to "iPhone Distribution" (Without your name this time - inconsistent with instructions in some other threads, I know.) Now your profiles should appear under "Code Signing Provisioning Profile."

I did not use a wildcard cert, or put the Provisioning Profile in the "Provisions" folder (contrary to other instructions.)

Jul 5, 2008 7:47 PM in response to xsmasher

Hi all,

I've found another solution that has been working pretty well. If nothing shows up in the list of provisioning profiles when you get info, try the following steps:


1. With your project open in XCode, create and open another, completely new project.
2. Open the Project Info window for that project
3. Drop down the Code Signing Provisioning Profile box. Your missing profile should have appeared.

Of course - there are lots of reasons for your profile not showing up. But if you think you've done everything correctly and this is your 100th time through - give it a shot. It's worked for me twice.

- Ben

Jul 11, 2008 7:07 AM in response to michaeldj

I had the same situation but I already solved twice. The first time is after nuking my machine and the second time is compiling distribution package on other machine.

1. See Key Chain and see if you can find your "private key" when you generate certification on your local machine. Usually your name is on it.

2. If you do not have the original private key, I guess, you have to request / generate and recreate certificate on their website. If you already have one in other machine or backup, Right click on the private key -> Export -> and move then double click at the target machine.

3. If you have a correct provisioning file, you will see it in drop down. If you see some funky code, just restart xcode and see if you can see the provision file.

You can verify validity of your app by typing command in terminal
codesign -vvvv MyApp.app


It should say, your binary is valid.


BTW, does anyone has problem to "update" the same application? I used exact same configuration, but upload never succeeded. See this thread if you have the same problem.
http://discussions.apple.com/thread.jspa?threadID=1590980&tstart=0

Jul 23, 2008 12:51 PM in response to michaeldj

I got it to work. Here's my experience:

My "Code Signing Provisioning Profile" option was not showing up in Xcode at all either. I went to the iPhone developer page and downloaded the iPhone SDK over again and reinstalled it with the default options.
When I restarted it had the option there. I set it to my development provision file and compiled. It asked me to reset my iPhone, once I did it worked fine.

So for people that don't have the option at all, I'd suggest reinstalling the SDK with the newest version from the web.

Aug 1, 2008 9:29 AM in response to kodafox

So I have tried all of the above suggestions, pretty much the only thing I have not done is reinstall the entire OS. I have everything in Keychain.app that should be there and I have gotten all the profiles into the correct folder, the catch is here though I believe since XCode would not put them there I had to use iTunes or do it by hand. Have no idea what is wrong with XCode (especially since I reinstalled it). I also have a G4 laptop that of course cannot compile iPhone apps but I wonder if it should be able to install the profiles still, as it does not install them on the G4 either but iTunes is still able to put them in the right place.

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.

trouble with distribution provisioning profile

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