Recently when submitting iOS Apps to App Store or TestFlight, user may encounter error as below:
ERROR ITMS-90165: "Invalid Provisioning Profile Signature. The provisioning profile included in the bundle 'xxx' (Payload/XXXX.app) cannot be used to submit apps to the iOS App Store until it has a valid signature from Apple. (Expired profile signing certificate.) For more information, visit the iOS Developer Portal."
You may get this error even if your provision profile and the signing certificate are both still valid. Until now, we don’t get official explanation from Apple why this is happening. But it’s likely to be caused by some update on the App Store side. You could review the discussion on Apple Forum and get more information from there:
https://developer.apple.com/forums/thread/704207
You could try to regenerate a provision profile to solve this issue. To achieve this:
After that, you need to rebuild your app and redo the submission to App Store. The error will not occur anymore.