title: NSCocoaErrorDomain error 516 caused by bringing PNG into Xcode
body: <p>I am trying to import PNG images into Xcode (version 4.6.2) on my Mac. These images were created on a Windows 7 machines, and stored on a NAS box.</p>
  
  <p>In finder, when I drag the images from my NAS box into Xcode I get the following error:</p>
  
  <blockquote>
    <p>The operation couldn't be completed. (NSCocoaErrorDomain error 516).</p>
  </blockquote>
  
  <p>Using Get Info on that file, Sharing &amp; Permissions only states that <code>You have custom access</code>.</p>
  
  <p>Ive managed to copy these images onto a folder on my Mac's desktop. Using Get Info on these local images, Sharing &amp; Permissions that My User, Staff and Everybody all have Read &amp; Write permissions. I can make copies of these images on my Mac and I can edit these images on my Mac.</p>
  
  <p>When I try and drag these local images into Xcode, I still get the same <code>NSCocoaErrorDomain 516</code>.</p>
  
  <hr>
  
  <p>EDIT:</p>
  
  <p>Because I read somewhere that the extended attributes could be causing this error, I have just used a Terminal Window to copy the files using this command:</p>
  
  <pre><code>cp -X button.png button2.png
  </code></pre>
  
  <p>But again, this gives me the same <code>NSCocoaErrorDomain 516</code>.</p>
  
  <hr>
  
  <p>EDIT 2:</p>
  
  <p>This is getting really infuriating now. If I rename the files, the Xcode accepts the files with no problem. If I rename the file back to what it was, Xcode kicks out the <code>NSCocoaErrorDomain 516</code> error again. I could go and rename the hundreds of images and change the references to them in my code, but I would really rather find out the cause of this problem.</p>
  
  <hr>
  
  <p>Ive been making the images on a Windows machine and importing them into Xcode fine for the last two weeks without problem. Today I do the same thing and suddenly this problem occurs. Nothing has changed to the Windows machine or the NAS box. My Mac has not been updated, nor am I aware of any changes to my Mac.</p>
  
  <p>What am I doing wrong? How can I get these images into Xcode?</p>