user3069232 user3069232 - 1 year ago 548
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?

Answer Source

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

Privacy - Camera usage description

Detailed screenshots are available in this link

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download