I am trying to upload application update using altool:
xcrun altool --upload-app -f myapp.ipa --apiKey API_KEY --apiIssuer API_ISSUER --type iOS
But upload fails with the following error:
ERROR: [altool.600000970040] Validation failed (409) This bundle is invalid. The bundle identifier cannot be changed from the current value, 'com.company.app.debug'. If you want to change your bundle identifier, you will need to create a new application in App Store Connect. (ID: 590e09ef-1502-4e67-a3b0-38d4f922ac94)
NSUnderlyingError : Validation failed (-19241) This bundle is invalid. The bundle identifier cannot be changed from the current value, 'com.company.app.debug'. If you want to change your bundle identifier, you will need to create a new application in App Store Connect.
For context, we have 2 apps in iTunes Connect, with ids com.company.app and com.company.app.debug, the debug version is used to test staging environment through TestFlight. This setup was created a while ago and worked fine until now.
I verified that the bundle I am uploading has proper bundle id (com.company.app) and version number.
How can I resolve this?