On Demand Resources - NSCocoaErrorDomainCode 4994

My app has suddenly stopped serving on demand resources from test flight and was rejected I submitted the app due to on demand resources being unavailable.


It works locally. I am not hosting on demand resources, I am using Apple hosted resources.


The full error message is


NSCocoaErrorDomain = 4994 "The requested application data doesn't exist."


UserInfo=(NSLocalizedFailureReason=Request could not be completed. Invalid tag set in '{(tag1, "tag2")}.


tag1 and tag2 exist in Target->Resource Tags


When I look in itunesConnect->Activity->IOS Builds->Version I can see that the app has the correct number of asset packs.


Any ideas?

All of this matches my experience, right down to the "bumping the build version". Failures on apps downloaded via TestFlight that do not appear in Simulator or on devices loaded via USB cable. Etc. etc.


I also concur that the root cause is that the


NSBundleResourceRequest.beginAccessingResources


completion handler is returning immediately with


Code = 4994 "The requested application data doesn't exist. UserInfo = {NSLocalizedFailureReason=InvalidTag}


And I can confirm that my tags are correct. I also concur that this is some race condition in Apple's code.


After several weeks of struggling with this, I am moving to host the on-demand data with AWS. At the very least, this will speed my *uploads* to Apple. Too bad, ODR looked like a nice one-stop-shop for managing bulky videos, etc. Maybe some day.

On Demand Resources - NSCocoaErrorDomainCode 4994
 
 
Q