I have a bunch of audio files which I keep in my asset catalog to benefit from the store optimizations that it brings. However, the AVAudioPlayer ideally wants AVURLAssets from which subsequently AVPlayerItems can be created.
Problem is, asset data doesn't have an URL. How do I combine asset catalog assets with AVPlayer?
Apple advises loading the files via NSDataAsset
constructor, which doesn't help.