iOS Packaging and Upload Error: ERROR ITMS-90161

When uploading an app using AppUploader, you may encounter ERROR ITMS-90161, which usually indicates an issue with the certificate.

Example screenshot:

Certificate Error Example


Root Cause

  • The certificate used for upload does not match the provisioning profile
  • Using the wrong type of certificate (e.g., development or enterprise certificate)
  • Incorrect provisioning profile type (must be App Store distribution)

Solution

  1. Ensure the Certificate is Correct

    • Use a Distribution Certificate, not a Development Certificate.
  2. Ensure the Provisioning Profile Matches

    • The provisioning profile type must be App Store
    • Ensure the profile is linked to the correct certificate and that the Bundle ID matches the one in App Store Connect.
  3. Repackage and Upload

    • In Xcode or AppUploader, re-select the correct certificate and provisioning profile
    • Generate a new IPA and upload it

Tip: Certificate and provisioning profile mismatch is the most common cause of ITMS-90161. Ensuring they match will allow your app to be submitted successfully.