title: BSMachError on granting access to camera
body: <p>This is a mystery to me and I hope you can help me out...</p>
  
  <p>I have made an app that has got a QR-scanner and when accessing it on a fresh install on my iphone an alert is shown subsequently. The problem is that the camera image freezes up and I am unable to scan any QR-codes...</p>
  
  <p>This problem goes away once I run the application from xcode again... </p>
  
  <p>This is what's printed out in the console:</p>
  
  <p><strong>_BSMachError: port 13403; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"</strong></p>
  
  <p>Note that I have added NSCameraUsageDescription to Info.plist. </p>
  
  <p>Thanks for your help!</p>
  
  <hr>
  
  <p><strong>UPDATE:</strong>
  I've tried adding NSPhotoLibraryUsageDescription and other similar permissions to the Info.plist file, as well as changing the localization native development region from EN to US (as solution read in other threads) but still no luck...</p>
  
  <hr>
  
  <p><strong>UPDATE #2:</strong></p>
  
  <p><strong>I created a new project</strong> yesterday, reusing the same code and the "QR-scanner view" works just fine!</p>
  
  <p>Question: <em>Could it be some form of conversion-related issue?</em> </p>
  
  <p>The project was created in Swift 2.2 and converted to the new syntax of Swift 3 just recently. That is the only real difference regarding the issue that I can think of...</p>
  
  <p>Happy to hear your thoughts on this matter!</p>