title: plist attachment from email in swift (NS Cocoa Error Domain Code 260)
body: <p>I am sending some ios file data via an email contained in a plist. No issues attaching it, I can check the file and the contents. It's all there and I can open it as a plist. Clicking on it (I have associated it with my app) it opens and I get a valid path:</p>
  
  <pre><code>file:///private/var/mobile/Containers/Data/Application/C5454580-2BEB-4515-9BDE-FED85FF54F76/Documents/Inbox/ShareStrength-11.bps
  </code></pre>
  
  <p>that I pass but when I try and read back the <code>NSDictionary</code> (plist) I get <strong>nil</strong> content.</p>
  
  <pre><code>let sourceFile = NSDictionary(contentsOfFile: URLString)
  </code></pre>
  
  <p>Any ideas on what is going wrong. Having difficulty debugging.</p>
  
  <p>EDIT: I found some error code:</p>
  
  <pre><code>var error: NSError?
  let content = NSString(contentsOfFile: URLString, encoding:NSUTF8StringEncoding, error: &amp;error)
  if content != nil
  {
      println("content: \(content)")
  }
  else
  {
      println("error: \(error)")
  }
  </code></pre>
  
  <p>And I get the error:</p>
  
  <pre><code>error: Optional(Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0x17eceeb0 {NSFilePath=file:///private/var/mobile/Containers/Data/Application/571DB0FF-6C5A-4BEB-9FA8-6E4DFE10E850/Documents/Inbox/ShareStrength-13.bps, NSUnderlyingError=0x17ee9810 "The operation couldn’t be completed. No such file or directory"})
  </code></pre>
  
  <p>Is this a sandbox issue? How can I copy the attachment being passed as a <strong>URL</strong>?</p>