ERROR ITMS-90161 Invalid Provisioning Profile

I originally made this Unreal Engine project on my windows laptop then moved it to my macbook to build it for the iOS App Store. It’s not working :).

Here’s what I have

Apple Resources (image: https://i.imgur.com/RaY3bqe.jpg)

  • Intermediate Certificate
  • iOS Distribution Certificate + Key
  • App ID | Type: explicit | “com.CompanyName.appName”
  • Provision Profile | Platform: iOS | Type: App Store
  • Keychain | Intermediate Certificate + iOS Distribution Certificate + Key

Unreal Engine Settings (image: https://i.imgur.com/bHvsvDA.jpg)

  • Provision, Certificate are valid
  • Bundle Info is named exactly how I named my cert,prov,ID. (case sensitive)
  • Automatic Signing | off
  • Build Configuration | Shipping

How I made my Certificate

  • Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority…
    It made a CSR and key
  • I used the CSR to make the iOS Distribution certificate at developer.apple.com
  • Downloaded certificate, drag and dropped into the keychain I made “UnrealEngineiOS”.





    Ok so… I used that to attempt to package in Unreal on my macbook

Steps

  1. Unreal Engine > File > Package Project > iOS

    Message Log: Provision not found. A provision is required for deploying your app to the device

    Message Log: Signing key not found. The app could not be digitally signed, because the signing key is not configured
  2. Unreal Engine > Project Settings > iOS > Build > Automatic Signing | On
  3. Unreal Engine > Project Settings > iOS > Build > iOS Team ID | “teamID”
  4. Unreal Engine > File > Package Project > iOS
  5. Build Success! appName-IOS-Shipping.ipa is created.
  6. Xcode > Open Developer Tool > Application Loader | * I choose my ipa file *
  7. Application Loader: “Reviewing your applications…”
  8. Application Loader > Next
  9. Application Loader: “Adding application”, “verifying assets with the App Store”
  10. Application Loader error:

Error

ERROR ITMS-90161: “Invalid Provisioning Profile. The provisioning profile included in the bundle com.companyName.appName [Payload/appname.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal.”

What am I doing wrong?