2

I'm making an app in which there is camera usage. I have added the key Privacy - Camera Usage Description and I have added the description also with it. "Use camera to display ARKit content."

But when I run the app it crashes my app with this error:

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

I'm confused why I'm getting this error since I have added it in the Info.plist.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
raheem
  • 689
  • 2
  • 8
  • 16
  • Please review [these search results](https://stackoverflow.com/search?q=must+contain+an+NSCameraUsageDescription+key+with+a+string+) on the error. – rmaddy May 29 '18 at 06:18
  • Duplicate Questions: https://stackoverflow.com/questions/39465687/nscamerausagedescription-in-ios-10-0-runtime-crash – Frederik L. Frandsen May 29 '18 at 06:27
  • Possible duplicate of [NSCameraUsageDescription in iOS 10.0 runtime crash?](https://stackoverflow.com/questions/39465687/nscamerausagedescription-in-ios-10-0-runtime-crash) –  May 29 '18 at 06:37
  • use this : https://stackoverflow.com/questions/39631256/request-permission-for-camera-and-library-in-ios-10-info-plist/47970037#47970037 – Vishal Vaghasiya May 29 '18 at 09:39

1 Answers1

2

Try below things,

  1. Delete app from Simulator or Device
  2. Press Cmd + Shift + K to clean the project and Cmd + Alt + Shift + K to clean the build directory
  3. Remove Derived Data folder
  4. Quit and restart Xcode

FYI. Just give it a try.

PPL
  • 6,357
  • 1
  • 11
  • 30