On Demand Resource Download Failed

I recently ran into the problem of loading resources on demand. I use Xcode 9.0 to download the application in the AppStore, and each download ends successfully. But, looking at the details of the iTunes Connect assembly, I see that resources on demand are included, but there are 0 asset packages for this assembly.

There is another interesting point in this problem. Line number 3 of my application was also loaded with resources on demand, and everything works fine with this assembly. But lines 4 and 5 do not have asset packages. I reviewed the changes in the application - there are no changes related to resources on demand, no.

In the Xcode-> Build β†’ Assets β†’ Embed Asset Packs settings in the Product Bundle is set to No.. In addition, the size of one package of assets is about 5 MB, the total size of all packages is about 150 MB.

Maybe someone also had this problem? Thanks.

UPDATE I checked the Product folder in the Xcode archive - all 36 asset packages, but iTunes Connect still shows 0 packages.

UPDATE 2 It seems that this happened more than once. The developers had the same problem a year ago. I think we should report an Apple bug.

UPDATE 3 We tried to download the application with resources on demand using Application Loader, but the result was the same.

UPDATE 4 We tried to return the code to the version where everything works fine with resources on demand and loads the same binary code with a different version number in iTC, but the result is the same.

UPDATE 5 We received a response from Apple Developer Technical Support (DTS)

Thank you for contacting Apple Developer Technical Support (DTS). Our engineers reviewed your request and determined that you were facing a known issue for which there is currently no known workaround.

I will post any updates related to this issue.

+5
source share
2 answers

Unfortunately, I cannot provide a solution to your problem ... just say that we have the same problem and what we have tried so far.

We have not changed anything by contacting ODR, and each IPA downloaded to iTunes Connect shows β€œ0 asset packages”. The build available on the App Store has the same set of asset packages and is listed correctly in iTunes Connect.

We tried the following:

  • creating a clean assembly;
  • Changing version and build numbers
  • Download using Application Loader instead of Xcode
  • confirmed by IPA - it includes the OnDemandResources directory with the correct number of items and files that look fine -
  • Using another Mac to boot
  • delete everything in the "DerivedData" directory.

iTunes Connect still insists that all downloaded IPAs use On Demand Resources but do not have asset packages, and if you install them through TestFlight, they consider the ODR tag to be invalid. This does not happen when installing the application with Xcode, then ODR work as expected.

We already wrote in Apple (both in iTunes Connect, and as technical support).

We will probably try more things while we wait for Apple to respond.

-

update:

I also tried to download the commit, which "represents" the application currently published, just by changing the version number. This did not work; asset packages are still not recognized.

One thing that can change from the moment you download is that we installed the beta version of Xcode 9.1. We do not use a beta version for download, and command line tools do not use a beta version of these tools.

0
source

(Edited) We struggled with the same problem for about a week, but tried to download a new assembly today, and although it still says β€œOn Demand” Resources Yes | 0 Asset Packs ... it turned out that the assembly works very well. Perhaps some changes have occurred today, and you should try the new assembly and see if it works.

We tried most of the options mentioned above, that is, we rebuild the project using Application Loader, update Xcode, etc., but it still does not work, so we just continue to download and test the testflight assembly.

(I know that this is not a lot of answer and will post it as a comment, but it seems that this is impossible without a sufficient reputation)

-1
source

Source: https://habr.com/ru/post/1273072/


All Articles