简体   繁体   中英

Xamarin.iOS code signing key error when Archive for Publishing

Working in Xamarin attempting to Archive for Publishing to obtain the .ipa file to upload my build to iTunes Connect, I get the following error:

iOS code signing key 'iPhone Distribution: [Company Name] (Team Id Number)' not found in keychain.

I am a member in the company team through in the Developer Account. I have already created the dummy app through Xcode and linked my developer account associated through the team, so the correct provisioning profile is there.

What step(s) am I missing? Why am I not able to release?

First of all, make sure that your distribution provisioning profile has been downloaded. Simply open XCode and navigate to Preferences -> Account to see the provisioning profiles. The name of the profile varies, as it is set in the Developer Portal.

If your distribution provisioning profile is already installed, then, as mentioned here , try to open your project's options and in the Build/iOS Bundle Signing set "Identity: Developer (Automatic)" and "Provisioning Profile: Automatic". Don't forget that this should be updated for the Release configuration.

Also make sure that your provisioning profiles are still valid in the developer portal. They could have expired. If so, simply click "Renew". Then afterwards, open XCode and navigate to Preferences -> Account and re-download all the provisioning profiles.

Lastly, make sure that you've got the certificate for distribution installed which contain the private key. This is required for publishing.

If everything else fails, you could consider trying to generate a new certificate and provisioning profile in the Developer Portal for distribution.

You need to make sure that you generated the provisioning profile for the certificate you're using. Also make sure that you're selecting the correct certificate and provisioning under iOS project > Options, make sure that you're not running with the Automatic certificate or profile.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM