I'm using Xcode 8.0 (8A218a) and iOS 10.0.2 to display thumbnails in a UICollectionView via on demand resources. My problem is: The thumbnails appear when using the simulator, but an error occurs when I try to use an iPad 4. The error is a NSBundleOnDemandResourceInvalidTagError. The error debug desctiption is: Error Domain=NSCocoaErrorDomain Code=4994 "The requested application data doesn’t exist."
The thumbnails are located in an asset catalog. Placing the image resource there caused an additional folder to be created in the finder. That folder has a .imageset extension. I don't see that folder name anywhere in the application or in any inspector. Althought I'm puzzled why the app works on the simulator and not on a device, the problem might be related to the path for the resources. The resources are located in the "Download Only On Demand" section.
For testing, I've removed all but one thumbnail, but the error still occurs. I've followed the Nonexistent Resources section of the On-Demand Resources Guide without finding the issue. The error occurs upon calling beginAccessingResources(completionHandler: (Error?).
Thank you.