user3069232 user3069232 - 5 months ago 301
Swift Question

NSCameraUsageDescription in iOS 10.0 runtime crash?

USing iOS 10.0 last beta. Tried to use Camera to scan barcode in my app, and it crashed with this runtime 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.

Put this key into the plist, but it still crashed?


You have to add this below key in info.plist.

Privacy - Camera usage description

Detailed screenshots are available in this link