Xcode error when uploading to App Store: "No suitable application records were found"

I'm using Ionic to build an html app for iOS. I've registered an app on iTunes Connect.

All goes well in Xcode until I upload to the App Store. I get the following error:

iTunes Store operation failed.
No suitable application records were found. Verify your bundle identifier 'com.iconicframework.app315125' is correct.

iTunes Store operation failed


I suspect you should not be calling your app "com.ionicframework.app315125". That looks like a leftover name from an example project.

You need to create a new Bundle Identifier in the Developer portal:

enter image description here

Then choose it when you "Create New App" in iTunesConnect:

enter image description here

For me, I'd pick com.maniac-games.lowdown.


Maybe you need to review this document.

In other words:

  1. You must go to developer.apple.com and create a provisioning profile and bundle id.
  2. Assign devices to provisioning
  3. Then ... enter itunesconnect and create app and assign your bundle id.
  4. Enter to Xcode and reload provisioning files.
  5. Enter to Targets files and select provisioning.
  6. Product -> Archive and go on :)

For those who are seeing this answer after June 2020, I'm running XCode 11, and I got this error because I forgot to make an app in App Store Connect:

https://appstoreconnect.apple.com/

If you have XCode 11, under "Signing & Capabilities" -> "Automatically manage signing", it'll solve 90% of the problem for you, but the other 10% is just logging into your developer account, going to App Store Connect -> Apps -> (Blue "+" icon), then select a Bundle ID that matches your Bundle Identifier back in XCode.