title: How to get NSData from file by using PHAsset
body: <p>I have file at path</p>
  
  <pre><code>file:///var/mobile/Media/DCIM/100APPLE/IMG_0197.mov
  </code></pre>
  
  <p>But when I try this code-</p>
  
  <pre><code>NSError *error;
  NSData *data = [NSData dataWithContentsOfFile:assetUrl.relativePath options:NSDataReadingMappedAlways error:&amp;error];
  </code></pre>
  
  <p>I got nothing but error:</p>
  
  <blockquote>
    <p>Error Domain=NSCocoaErrorDomain Code=257 "Не удалось завершить
    операцию. (Cocoa, ошибка 257)" UserInfo=0x175a61380
    {NSFilePath=/var/mobile/Media/DCIM/100APPLE/IMG_0197.mov,
    NSUnderlyingError=0x17424e550 "Не удалось завершить операцию.
    Operation not permitted"}</p>
  </blockquote>
  
  <p>File exists but I can't read it.</p>
  
  <p>But at the same time AVPlayer normally plays video file.</p>
  
  <p>I tried </p>
  
  <pre><code>PHFetchResult *fetchResult = [PHAsset fetchAssetsWithALAssetURLs:@[assetUrl] options:nil];
  </code></pre>
  
  <p>But I did not get any result.</p>