ERROR ITMS-90161 Invalid Provisioning Profile

I was finally able to get my project to build in Unreal Engine.... buuut... Application Loader won't accept it to the App Store. I'ts an iOS app made for Distribution.


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

- App Store Connect Project with "appName" and matching Bundle ID selected.

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”.


Unreal Engine Settings (image: https://i.imgur.com/bHvsvDA.jpg)
- Provision, Certificate are valid
- Bundle Info is named exactly how I named my certificate,provision,ID. (case sensitive)
- Automatic Signing | off
- Build Configuration | Shipping

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 | I enter my team ID
  4. Unreal Engine > File > Package Project > iOS
  5. Build Success! appName-IOS-Shipping.ipa is created. I'm very excited at this point "omg it finally worked"
  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.”


How do I get the App Store to accept my ipa file? What am I doing wrong?