Reputation: 1184
A recent attempt to build an app failed and I realized that the App ID prefix (Team ID) was different from the Team ID of my developer certificate. The prefix of my Distribution certificate is correct and matches my Team ID. My account is an individual one and I have attempted several times revoking and reissuing my Development certificate, but each time it is generated, it produces a certificate with a different Team ID.
To recap: App Identifier Prefix (on iTunes Connect): 8RJ7xxxx Distro Certificate Team ID: 8RJ7xxxx Development Certificate Prefix: 5PM6xxxx
Result: Develpoer team ID mismatches (between XCode and Certificates in Keychain) prevent app from being code signed.
Has anyone seen/corrected this issue?
Upvotes: 10
Views: 14647
Reputation: 1160
None worked for me so my solution is
Go to Signing & Capabilities
(that tab you enable auto signing)
Disable app groups / entitlements
. That worked for me.
Upvotes: 0
Reputation: 667
I found the similar issue. I had different ID’s both on generated certificate and provisioning profile. When I restarted my machine Xcode was able to re-fetch the matching certificates. This could be the Xcode bug to identify the exact certificate for the provisioning profile.
Restart you system and check Your Xcode settings
Upvotes: 0
Reputation: 1184
After a back and forth with iOS Developer Help personnel, we've determined that: The Team ID for the Development Certificate is randomly assigned and will be different from the Distribution Certificate. The arbitrary Team ID for the Development Certificate ultimately has no bearing on reality. The code signing issues I was having were coincidental and were eventually fixed by (what you can read elsewhere on this site) revoking everything, re-issuing all certificates...and (what I was not doing) WAITING PATIENTLY (took about a day) before everything went back into effect.
Upvotes: 12
Reputation: 1791
if you login into https://developer.apple.com you will see in the "Identifiers" part, that every of your prefixes is an other one.
Check if your developer provisioning profile (I think it's the Wildcard profile) is connected correct with your certificate. Or you can delete it an synch again with xcode so it will create a new one by itself :)
Upvotes: 0