在iOS 10.0运行时崩溃的NSCameraUsageDescription? [英] NSCameraUsageDescription in iOS 10.0 runtime crash?

查看:782
本文介绍了在iOS 10.0运行时崩溃的NSCameraUsageDescription?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 iOS 10.0 上次测试版。我尝试在我的应用程序中使用Camera扫描条形码,并且由于此运行时错误而崩溃。

Using iOS 10.0 last beta. I had tried to use Camera to scan barcode in my app, and it crashed with this runtime error.


此应用程序崩溃,以访问隐私敏感的
数据,而没有使用描述。应用程序的Info.plist必须包含
一个NSCameraUsageDescription键,带有一个字符串值,向
用户说明应用程序如何使用此数据。

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.

把这个键放入plist,但是它仍然崩溃了吗?

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

推荐答案

您必须在info.plist中添加以下键。

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

隐私权 - 相机使用说明

Privacy - Camera usage description

详细屏幕截图useyourloaf.com/blog/privacy-settings-in-ios-10/\">链接

Detailed screenshots are available in this link

这篇关于在iOS 10.0运行时崩溃的NSCameraUsageDescription?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆