Hello,
We're facing the problem with the upload of prepared Xcode archive to the App Store Connect. Archive is being made successfuly but during the sheer upload step, we receive the following error:
Error: The package could not be unpacked because of the following error: Unable to extract archive. Please make sure /Users/vagrant/deploy/Runner.ipa is a valid zip or ipa archive. Unable to validate your application. (-20008)
{
NSLocalizedDescription = "The package could not be unpacked because of the following error: Unable to extract archive. Please make sure /Users/vagrant/deploy/Runner.ipa is a valid zip or ipa archive.";
NSLocalizedFailureReason = "Unable to validate your application.";
}
Here's some background of the situation: our application intensively uses the Apple ODR technology which allows for 20GB of archive size at maximum. The details about Apple ODR, how it works and what the limits are, can be found here:
- https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/index.html
- https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/PlatformSizesforOn-DemandResources.html#//apple_ref/doc/uid/TP40015083-CH23-SW1
We've been building the archives which used to have around 17GB in size and that was fine. All of them could go straight to the App Store Connect without the issue. For about a week and a half, we unexpectedly started to see the attached error during the sending process to App Store Connect (after Xcode archive).
What's worth mentioning:
- we didn't change anything significant in the codebase or in the Apple ODR tags (our app still has around 17GB);
- the exact same app with smaller pack of ODR tags (which results in a smaller archive) is being uploaded to App Store Connect without any issues.
It looks like the size here would be a problem but like I mentioned - the same size used to work with App Store Connect upload via Xcode. Right now we are forced to use the Apple Transporter which can successfully transfer the 17GB archive to the App Store Connect but that's only a workaround which is not even available on CI/CD environment.
Please, advise us how we can resolve the problem or where we can search for the solution. Thanks!