Signing certificate "Not in keychain"

Hi,

I'm working with an Enterprise developer account. Just today, I recreated my distribution certificate, downloaded it, and installed it into my keychain. I also removed an older certificate that was there.

However, Xcode won't let me select the new certficate when I use the Distribute App workflow. When I reach that screen, only the old certificate is shown in the list. If I click "Manage Certificates", I can see the new one listed, but it is disabled, and there is a note next to it that says "Not in keychain".

I checked with the Keychain utility to make sure it is there, and has a private key.

Why is Xcode not allowing me to select this certificate, and how do I fix it?

Thanks.
To avoid problems, I found that the simplest is to renew certificates in Xcode itself, with Preferences > Account.

Have you tried ?
Signing certificate "Not in keychain"
 
 
Q