繁体   English   中英

iOS10应用程序已崩溃,因为它尝试访问对隐私敏感的数据

[英]iOS10 app has crashed because it attempted to access privacy-sensitive data

尝试打开摄像机时,我的应用程序崩溃了。 打开相机很好,但是当我从图像切换到视频时,出现此错误:

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

我觉得这很奇怪,因为我已经在我的plist文件中添加了权限。

在此处输入图片说明

<key>NSCameraUsageDescription</key>
<string>Camera is used to make pictures when creating a job</string>

在您的.plist添加以下密钥: Privacy - Microphone Usage Description和所需的值。

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM