The accepted answer also worked for me. What I noticed is that it appears Xcode Cloud API created a new cert before the existing actually expired. Deleting the almost expired cert made everything work again.
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags: