Validation failed (-19241) The app contains one or more corrupted binaries. Rebuild the app and resubmit.

I am using XCode (Version 26.0.1 (17A400)) -> Archive -> Distribute App (or Validate App) to upload my iOS app into App Store Connect.

However I am always getting this error:

Uploading SPI errors: Validation failed (409) The app contains one or more corrupted binaries. Rebuild the app and resubmit.

NSUnderlyingError : Validation failed (-19241) The app contains one or more corrupted binaries. Rebuild the app and resubmit.

code : STATE_ERROR.VALIDATION_ERROR

I tried exporting the app as an IPA and uploading with Transporter, but I see the same error.

I couldn't find any other useful logs or error messages.

More info:

  • I have created the app in App Store Connect and this is my first time uploading.
  • The app can build and run on my physical phone and emulator without any problem.

Would be great to get some help! Thanks!

Answered by DTS Engineer in 871677022
I fixed it by updating:

Weird.

Just for grins I created a tiny test app that contains your first code snippet, and it passed through the App Store Connect submission process without any problems. So I’m not sure why this is failing for you or why that change helped.

If you’re feeling enthusiastic about this, you could revert the change, see if it still reproduces the problem, and then file a bug about it, making sure to attach the .ipa that you fed into Transporter.

If you do that, please post your bug number, just for the record.

But no pressure. I understand if you just decide to stick with your workaround.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I fixed it by updating:

UIApplication.shared.sendAction(#selector(UIResponder.selectAll(_:)), to: nil, from: nil, for: nil)

UIApplication.shared.sendAction(#selector(UIResponder.cut(_:)), to: nil, from: nil, for: nil)

into

UIApplication.shared.sendAction(Selector(("selectAll:")), to: nil, from: nil, for: nil)

UIApplication.shared.sendAction(Selector(("cut:")), to: nil, from: nil, for: nil)
    

I don't know why.

I fixed it by updating:

Weird.

Just for grins I created a tiny test app that contains your first code snippet, and it passed through the App Store Connect submission process without any problems. So I’m not sure why this is failing for you or why that change helped.

If you’re feeling enthusiastic about this, you could revert the change, see if it still reproduces the problem, and then file a bug about it, making sure to attach the .ipa that you fed into Transporter.

If you do that, please post your bug number, just for the record.

But no pressure. I understand if you just decide to stick with your workaround.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Validation failed (-19241) The app contains one or more corrupted binaries. Rebuild the app and resubmit.
 
 
Q