iOS Build fails with "ENTITY_ERROR.RELATIONSHIP.INVALID.INVALID_APP_STATE" error

What platform are you building for?

iOS

What framework are you building with?

Cordova

What is your build ID?

b5fc145e-16db-4d16-b178-b4489ec94007

What is your error message?

ServerError: App Store Connect validation failed
Running altool at path ‘/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Frameworks/AppStoreService.framework/Support/altool’…
2025-06-03 15:13:32.226 ERROR: [altool.600001628180] [ContentDelivery.Uploader.600001628180] The provided entity includes a relationship with an invalid value (409) App is Removed or Deleted. Apps can’t be validated or submitted while they’re removed or deleted. (ID: 03c9f706-43bf-47b2-b8c3-33cdd83b84a6)
2025-06-03 15:13:32.228 ERROR: [altool.600001628180] Validation failed for ‘/Users/vagrant/voltbuilder/agent/upload/b5fc145e-16db-4d16-b178-b4489ec94007/ios.app-store.ipa’.
2025-06-03 15:13:32.228 ERROR: [altool.600001628180] The provided entity includes a relationship with an invalid value App is Removed or Deleted. Apps can’t be validated or submitted while they’re removed or deleted. (ID: 03c9f706-43bf-47b2-b8c3-33cdd83b84a6) (409)
{ NSLocalizedDescription = “The provided entity includes a relationship with an invalid value”;
NSLocalizedFailureReason = “App is Removed or Deleted. Apps can’t be validated or submitted while they’re removed or deleted. (ID: 03c9f706-43bf-47b2-b8c3-33cdd83b84a6)”;
NSUnderlyingError = “Error Domain=IrisAPI Code=-19241 "The provided entity includes a relationship with an invalid value" UserInfo={status=409, detail=App is Removed or Deleted. Apps can’t be validated or submitted while they’re removed or deleted., source={\n pointer = "/data/relationships/app/data/relationships/app/id";\n}, id=03c9f706-43bf-47b2-b8c3-33cdd83b84a6, code=ENTITY_ERROR.RELATIONSHIP.INVALID.INVALID_APP_STATE, title=The provided entity includes a relationship with an invalid value, NSLocalizedDescription=The provided entity includes a relationship with an invalid value, NSLocalizedFailureReason=App is Removed or Deleted. Apps can’t be validated or submitted while they’re removed or deleted.}”;

Please describe the issue:

Can’t see why I would be getting this error, when my id in config.xml exactly matches the bundle ID in App Store Connect. Please note that this app has been published before, I’m just trying to update it now. It’s an unlisted/private app (not available on App Store).

It’s worth reaching out to Apple support on this. We’ve seen a number of issues with App Store Connect over the last few weeks and it wouldn’t surprise me if this was one of them.