This is a repost, original link: iOS related, the certificates on the computer are all invalid after returning from 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, I fixed mine but forgot to take a screenshot 😓), this problem keeps appearing; it's crashing, can I still have fun after the first day of 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 time, clever me, I looked at the certificates in the keychain and found it like this (the image is still from someone else), damn it, what the hell, I'm just celebrating the new year, how did the certificates become like this, then I googled,

Then, I saw the first one, 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 should I 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, 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...)
Whispering, for the steps below, I didn't follow them step by step, after selecting the certificate, I directly searched for Apple Worldwide, and two options 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 that error, iOS Missing or Invalid Signature: The bundle is not signed using an Apple Submission Certificate, and found the solution, laughed and cried...
