Forward slash in assetTitle causes error

While testing (real device) AVAssetDownloadURLSession I noticed when I put slash "/" into assetTitle as result I receive error:


Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedDescription=The operation could not be completed, NSLocalizedFailureReason=An unknown error occurred (-12780)}


Example code:

AVAssetDownloadTask *assetDownloadTask = [urlSession assetDownloadTaskWithURLAsset:urlAsset assetTitle:@"One two three (open/close)" assetArtworkData:nil options:nil];


From Apple's documentation ():


title A human readable title for this asset in the user's preferred language. This value will be displayed in the usage pane of the Settings app.


I think above example is quite human readable. Do I need to treat slash as a special character and escape it somehow to assign it properly?

Replies

Was this in iOS10 or iOS11?
Because I was informed that in iOS10 you must use latin alphabet for the assetTitle (It's used in the folder name for the downloaded asset).

This was fixed in iOS11.


https://forums.developer.apple.com/message/328674#328674