title: AVPlayer / AVAudioPlayer - Play audio fileURL from iCloud Drive (work on simulator but not iPhone) + (OSStatus error -54.)
body: <p>I'm making Audio Player.
  Importing file from iCloud Drive using <code>.fileImporter</code>.</p>
  <p>I get file URL that looks like this: <code>file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/_Storage/Audio-books/%D0%91%D1%80%D0%B5%D0%BD%D0%B4%D1%8F%D1%82%D0%B8%D0%BD%D0%B0/Audiobook.mp3&quot;</code></p>
  <p>Then I pass it to audio player (tried AVPlayer and AVAudioPlayer). Both <strong>works on iOS simulator</strong>.
  On the device after import I get error: <em><strong>The operation couldn’t be completed. (OSStatus error -54.)</strong></em></p>
  <p>I know it's possible, app called <a href="https://www.everappz.com/evermusic" rel="nofollow noreferrer">Evermusic</a> does quite the same with on device files.</p>
  <ul>
  <li>Is there permissions I need to be granted to play audio that stored on device?</li>
  <li>How can I access Container for com~apple~CloudDocs?</li>
  </ul>
  <p>Thank you very much for help, any suggestions greatly appreciated, I'm seriously stuck.
  For future references repo of the project: <a href="https://github.com/yaosamo/AudioPlayer" rel="nofollow noreferrer">https://github.com/yaosamo/AudioPlayer</a></p>