Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Provisioning profile doesn't include signing certificate (Xcode 9.3)

After upgrading to macOS 10.13.4 and Xcode 9.3, my project now makes all my Provisioning Profile ineligible! They worked before upgrade.

The error message for the distribution profile is:

Provisioning profile "distribution profile name" doesn't include signing certificate "development certificate name"

So I search through the forum,

  • remove ALL items in keychain My Certificate
  • redownload the distribution profile (double tap to install to Xcode)
  • create new distribution profile (double tap to install to Xcode)
  • recreate the Production certificate (double tap to install to Keychain)
  • redownload the Development certificate (double tap to install to Keychain)

So now my keychain has two production certificate (one is newly created), and one development certificate, and the error is still there. I found it weird that it asked for the development certificate in distribution profile? (I think this is a clue but I don't know why and what to do.)

So now what should I do? Please help!

like image 906
Lim Thye Chean Avatar asked Apr 04 '18 05:04

Lim Thye Chean


People also ask

How do I add a certificate to my provisioning profile?

Login to https://developer.apple.com. Click Certificates, Identifiers and Profiles . Under Provisioning Profiles , Click All . Click Add(+) to register a new provisioning profile.

How do I enable signing in Xcode?

Open the project using Xcode. Select the root project directory, and go to the Signing and Capabilities tab. Here, you can either check Automatically manage signing or do the signing manually. If you check the Automatically manage signing checkbox, then you will just need to select the Team from the drop-down list.

How can I see my signing certificate in Xcode?

You can check the profile detail, preview it(I prefer using Space bar) and under Certificate section, you can get the detail. Otherwise, login to apple developer portal and edit the profile to check the certificate used to create the profile. Hope this helps.


1 Answers

I got two options for you:

1) open KeyChain and find the signing certificate that shown in the error message then delete it.

2) you specified the signing certificate in the Build Setting->Signing, so go to the Build Setting->Signing and click the Code Signing Identity. Do not select Automatic (iOS Developer or iOS Distribution), select the one of the signing certificates in the Identities in Keychain which is valid and have associated with the Provisioning Profile.

like image 141
David Ding Avatar answered Sep 28 '22 19:09

David Ding