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 the clue, but I don't know why)
So now what should I do? Please help!
I fixed the problem by:
Exporting from Keychain all my Apple Developer certificates to a .p12 file.Deleting all my Apple Developer certificates.Double-clicking the exported certificates file to re-import the certificates to the keychain.After that, it magically started working again.
With Apple you are going to need magic to get things working... I am resorting to the rain dance to try get XCode to recognice my provisioning profile does indeed include the necessary signing certificate.
I had the same issue - "provisioning profile does not contain the signing certificate" - and the above info led to the solution: I was busy exporting the existing certificates to .p12 when I noticed one had expired. Deleting that one from the key chain did the trick - the app then validated correctly with auto signing, finding the right certificates on its own.