No certificate for team '' matching 'Developer ID Application' found

When completing signing on Xcode, it shows the following error message "No certificate for team '' matching 'Developer ID Application' found"

I have already followed the steps to generate a certificate from keychain and made a new certificate on developer portal, along with its associated provisioning profile.

Viewing "Manage Certificate" window shows the newly created certificate, but Xcode seems to not be able to locate it.

No certificate for team '' matching 'Developer ID Application' found
 
 
Q