About a week ago our Apple Distribution Certificate expired. XCode detected this the next time I tried to send an app to Apple, and offered to generate a new certificate.
This process works correctly and the certificate is generated. However, when we try to use it to send the app to Apple, we receive a message saying that the private key is not in our Keychain. As this is a newly generated certificate, the private key is generated at the same time (I exported it) and I have tried installing it manually into the keychain on both 'login' and 'system' but nothing seems to work.
I have checked Distribution certificate / private key not installed and tried some of their suggestions:
- Logging into developer.apple.com and revoking all old distribution certificates
- Removing old certificates from Preferences -> Accounts -> Manage Certificates (I've also tried clicking the '+' icon and generating a new distribution certificate - this gets added underneath the earlier one)
- Restarting XCode and the apple machine
- Deleting older private keys in case they are interfering.
Is there something I'm missing? A lot of the guides seemed to suggest that generating a new certificate would be the way to go, but it just doesn't seem to 'link' with the private key it generates at the same time.
Many thanks.
EDIT: I am not alone in this it seems: https://developer.apple.com/forums/thread/671484