I recently worked on On-Demand Resources for my tvOS app. The goal was to download a video file through ODR and play it.
Found this bug where the downloaded ODR asset will magically disappear after you present or dismiss a view controller.
Steps to reproduce this bug:
- Create a NSBundleResourceRequest like
NSBundleResourceRequest.init(tags: [“tag name”])
- Asset is ready for use, hooray!
dismissViewControllerAnimatedis called, the downloaded asset will become unavailable, i.e.
The “workaround” I have is to avoid presenting/dismissing view controller as long as the ODR asset is still required.
Ticket #26892545 raised in Apple Bug Reporter (a.k.a. Radar).