iOS 11.0b1 simulator AVURLResourceLoaderDelegate fails with custom URLs
| Originator: | jackpal | ||
| Number: | rdar://32695399 | Date Originated: | 2017-06-10 |
| Status: | Closed | Resolved: | |
| Product: | iOS | Product Version: | 11.0b1 |
| Classification: | Bug | Reproducible: | Always |
AVURLResourceLoaderDelegate custom urls do not work in the iOS 11.0b1 simulator.
Attempting to use a custom URL with AVURLResourceLoaderDelegate returns error messages like:
AVARLDelegateDemo[4006:287820] [] <<<< Async >>>> playerasync_runAsynchronousCommandOnQueue: Command 3 returned -12784; this async error will be discarded
More detailed error messages from my real app:
XXX[78484:7499631] [] curll_getURLOnQueue signalled err=-17383 (kFigCustomURLLoaderError_RequestUnhandled) (request unhandled) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/EmbeddedCoreMediaFramework_Sim/EmbeddedCoreMedia-2010.7.3/Sources/DataIO/CustomURLHandling/FigCustomURLHandling.c line 2081
XXX[78484:7500061] [] CustomURLFlume fbfcu_AskForResponse: no provider set
XXX[78484/0x70000ca6a000] [lvl=2] -[MyQueueManager currentAssetDidChangeState:error:completionHandler:] Loading of current AVAsset failed with error Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSUnderlyingError=0x61000105d970 {Error Domain=NSOSStatusErrorDomain Code=-12936 "(null)"}, NSLocalizedFailureReason=An unknown error occurred (-12936),
Steps to Reproduce:
Install and run AVARLDelegateDemo from
https://developer.apple.com/library/content/samplecode/sc1791/Introduction/Intro.html
Expected Results:
Expect the demo to work on Xcode 9.0b1 with the iOS 11.0b1 simulator
Observed Results:
The demo does not work when run on Xcode 9.0b1 with the iOS 11.0b1 simulator
AVARLDelegateDemo[4006:287820] [] <<<< Async >>>> playerasync_runAsynchronousCommandOnQueue: Command 3 returned -12784; this async error will be discarded
Notes:
The demo works when run on real hardware running iOS 11.0b1, such as an iPhone 7s Plus
The demo works when run on the Xcode 9.0b1 simulator running earlier versions of iOS such as 8.4
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Seems to be fixed in XCode 9.0b4