Debugging Code-Signing errors
-
19-09-2019 - |
Question
How can one debug errors related to code-signing and missing certificates? Can I do the process from command line?
In XCode under 'Organizer > Provisioning Profiles', I get 'A valid signing identity matching this profile could not be found in your keychain'. How can I debug this problem?
Solution
Possible problems:
The certificates have expired
The certificates have been renewed without updating the application provisions
The private/public keys are missing from keychain. They should have been generated when you created the certificate request.
The certificates and public/private keys are stored in a keychain other than the default one.
OTHER TIPS
I tried all the above solutions with no luck--I was able to solve it by right-clicking on my System keychain (in Keychain Access), and making it the default keychain. Prior to this, my default was set to "Login."