The data couldn’t be read because it isn’t in the correct format.

I am facing this error when try to distribute the app. My app is running fine in my device. When I make an archive successfully and try to distribute it I am facing the problem. My Xcode version is 13.3

I have the same problem but on Xcode 13.4.1. Did you solve it?

I only got the issue when I open xcode with the capacitor cli (npx cap open ios). It all works when I open xcode with spot light. strange...

Open Xcode without Rosetta solve the issue.

I am running Xcode 13.2.1 on an x86 machine so I don't have Rosetta. My app "Validates" just fine. I get this error when trying to upload it for distribution. All certificates are valid as far as I can tell. My machine is a MacBook Pro (Retina, 15-inch, Late 2013) running macOS Big Sur 11.7.

The data couldn’t be read because it isn’t in the correct format.
 
 
Q