I am reposting, original link: iOS Related, the certificates on the computer are all invalid after the Chinese New Year, seeking help from experts!
I just finished packaging and uploading, and encountered this problem, (the image is also from someone else's, I fixed mine but forgot to take a screenshot 😓), this problem keeps appearing; it's crashing, can I still have a happy time playing after the New Year? Then I started Googling...

I followed the instructions above to search, and what I found is , then I looked at the first two, regenerated and published the provisioning profile, but it's still not working, damn it

At this point, being clever, I looked at the certificates in the keychain, and found it like this (the image is still from someone else's), damn it, what the hell, I just celebrated the New Year, how did the certificates become like this, then I googled,

Then, I saw the first post, tears filled my eyes, just an hour ago, there's someone more diligent than me, ah ah ah, my savior, it's the link at the beginning of the article

So many methods, which one to use? I took the easy way out, and used this one, then the packaging was successful

Wait, upload failed (the image is still from someone else's, don't laugh)

Fuck, what the hell, then I quietly changed everything in the keychain back to what it was before, and followed this to make the changes, upload successful, YES!!! (Don't scold me, the accepted answer is indeed correct...)
Quietly saying, for the steps below, I didn't follow them step by step, after selecting the certificate, I directly searched for Apple Worldwide, and two appeared, I deleted the expired one, then looked in the system, couldn't find it, the certificate status has already become valid, then I just packaged it

By the way, I Googled the error, iOS Missing or Invalid Signature: The bundle is not signed using an Apple Submission Certificate, and found the solution, laughed and cried...
