Search code examples
xcodeapp-store-connect

Invalid Provisioning Profile Signature - STATE_ERROR.VALIDATION_ERROR.90165


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.

enter image description here


Solution

  • The issue was caused by two expired Apple certificates1.

    Solution is to

    1. Go to Certificates, Identifiers & Profiles
    2. Open the provision profile
    3. Press Edit in the top right
    4. 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.


    1 https://twitter.com/JI/status/1514043544897425408