IOS: Provisioning profile missing private key

iosxcode

In my Keychain, I have my iOS developer certificate, along with its nested private key.

In the Apple developer center, I created a provisioning profile under Distribution for my app, and downloaded it. When I bring it into Xcode, I see the provisioning profile but it says "valid signing identity not found" and I can't properly build an archive for ad hoc distribution.

How can I resolve this? Like I said, under my Keychain, I have my private key AND my developer profile certificate.

Best Answer

In the apple developer's Certificates, Identifiers and Profiles section, you have an option to generate a certificate for ad-hoc or app store. After selection that, you should have to create a signing request such as this screen...

CSR screenshot

once you created a certificate, then proceed to create a provisioning profile with THAT certificate.