Regenerate the Provisioning Profile, you can keep the same certificates.
Resolve with following steps
Regenerate Provisioning Profiles
Go to developer.apple.com => Certificates, Identifiers & Profiles => Profiles => click on the profile => Click on EDIT => SAVE again (to ensure it regenerates the Provisioning Profile)
I had been deploying till yesterday. The builds worked fine, all of a sudden today, I started running into this issue as well. Nothing else worked for me. The following steps resolved the issue for me:
Creating a newApple Distribution Certificate. (you can follow the steps on the dev portal - developer.apple.com)
Apple has updated its WWDR certificates https://developer.apple.com/support/expiration/
Some certificates expired in January and some in April of 2022 depending on what version of xCode you had. With that being said, any provisioning profile downloaded before April of 2022 was signed with a now expired WWDR. That's why you'd need to regenerate your provisioning profiles.
For those using fastlane, adding force: true to your get_provisioning_profile call will reset the expiration date.
get_provisioning_profile( # Create or get provisioning profile
output_path: "./builds", # change to whatever works for you
force: true,
filename: "AppStore_" + ENV["APP_IDENTIFIER"] + ".mobileprovision" # Rename the local provisioning profile
)
> [Getting this error on uploading app on Test Flight. DOn't worry Just follow these steps]
> [1] Go to Xcode preference
> [2] Open Accounts tab
> [3] Click on manage Certificates
> [4] At bottom 'Apple Distribution Certificates' ,there is your expire certificate. Just delete it and try to upload again
>
> App upload to Test Flight successfully.
>
>
> [1]: https://i.stack.imgur.com/Pjxkg.png