I want to save the PHAsset which is an iCloud video in applictions temporary directory. I tried using exportAsynchronouslyWithCompletionHandler buy setting export session output url as temporary directory url. I donnot know is it a right way to do, but I got following error,
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo=0x1900f330 {NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x190c1830 "The operation couldn’t be completed. (OSStatus error -12780.)", NSLocalizedFailureReason=An unknown error occurred (-12780)}
Please suggest what could be the solution.
Thank you!