title: Error in get file from iCloud in ios
body: <p>Hi in my app I have to get file from iCloud.. I enable iCloud all working fine in Simulator.. But when I test in iPhone, I can see the iCloud files when I choose the default delegate calls but I can't get data from the url..</p>
  
  <pre><code>- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url
  {
      NSData *pdfData = [[NSData alloc] initWithContentsOfURL:url];
  } 
  </code></pre>
  
  <p>Always I getting <code>pdfData</code> as nil. I log the error </p>
  
  <pre><code>Error Domain=NSCocoaErrorDomain Code=257 "The operation couldn’t be completed. (Cocoa error 257.)" UserInfo=0x17029810 {NSFilePath=/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/download (2).jpeg, NSUnderlyingError=0x15ea9680 "The operation couldn’t be completed. Operation not permitted"}
  </code></pre>
  
  <p>I cant figure out.. Can you please help me to fix this issue..</p>