I am trying to upload an archive to App Store Connect, and suddenly am getting the following error:
Invalid Provisioning Profile Signature. The provisioning profile included in the bundle cannot be used to submit apps to the iOS App Store until it has a valid signature from Apple. For more information, visit the iOS Developer Portal. With error code STATE_ERROR.VALIDATION_ERROR.90165 for id …
I am using “Automatically manage signing” and have uploaded an archive just yesterday for the same app with no issue.
The issue was caused by two expired Apple certificates1.
Solution is to
- Go to Certificates, Identifiers & Profiles
- Open the provision profile
- Press Edit in the top right
- Press Save without making any changes This will regenerate the profile with the correct CAs.
Now delete the ~/Library/MobileDevice/Provisioning Profiles folder and let xcode redownload the profiles again.