Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing identity problems in XCode 5

So I'm trying to validate an app for the purpose of beta testing, but when I try to validate an archive, it tells me:

"No identities are available for signing"

And when I hit the "Download Identities" button and choose from my development team, it says:

"No identities were available/ An administrator must request identities before they can be downloaded."

I've revoked my certificates and made them again, and I've deleted the provisioning profiles and made them all again for ad hoc distribution and development (I also deleted all the provisioning profiles from my keychain).

I made sure that my bundle identifier matches the app record in iTunes Connect and the distribution provisioning profiles I've created from the iOS Dev Center. The bundle identifiers match.

All of the certificates and distribution profiles show up under my "Accounts" under "Preferences" in XCode. The accounts shows that I have valid certificates and provisioning profiles.

I also made sure that the correct distribution provisioning profile was selected under "Code Signing" in the Build Settings.

Any other ideas about what I could do, or what the problem might be?

I've been scouring every stackflow post I could find. Tried the checked answer on this one most recently and it didn't work:

XCode 5 Crashes on AppStore Validation

Any other ideas?

like image 219
MScottWaller Avatar asked Dec 20 '22 22:12

MScottWaller


1 Answers

Try following these instructions. Basically there are multiple places where you have to tell Xcode what your bundle identifier is and what the provisioning profile is. I can't believe this stuff is totally overlooked in the iOS Developer Distribution Guide by Apple.

http://anthonytietjen.blogspot.com/2012/08/overcoming-trouble-validating-your.html

Also, go into Build Settings for your project and go to Code Signing. Make sure the Code Signing Identities are all set to the iDevice Distribution App ID you created in iTunes Connect as well as the Provisioning Profile set to the Provisioning Profile you painstakingly created in the iOS Development Center as well (that Ad Hoc provisioning profile file you created and downloaded into Xcode.)

Apple was great at walking you through creating the Distribution Certificate and Ad Hoc Provisioning Profile, but when it comes down to getting things bundled up in Xcode, they left a lot out.

https://developer.apple.com/library/IOs/documentation/IDEs/Conceptual/AppDistributionGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40012582-CH1-SW1

Also, I would say that if you still can't get it working with an Ad Hoc provisioning profile, try generating an App Store Distribution Provisioning Profile within the "Certificates, Identifiers, and Profiles" portion of the Development center , import it into Xcode (by refreshing the provisioning profile list under Xcode->preferences->accounts->details->refresh button) and go through the validation process of your archive again. I'm not sure if it's because Xcode can't validate an Archive with an Ad Hoc profile or what, but it seems to pick up the Distribution Provisioning Profile just fine and allows you to validate. Don't worry, even if you don't validate the archive with the Ad Hoc provisioning profile, you can still create the .ipa for your archive by hitting the Distribute button in Organizer->Archives and choosing the Ad Hoc profile so that you can beta test it.

like image 127
Dave Avatar answered Jan 08 '23 00:01

Dave