What fixed for me was to change the Bundle Identifier (in xcode) to the correct one, which is the one that appears when you go to your app page in App Store Connect.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: