Xcode:缺少NSCameraUsageDescription的Info.plist密钥 [英] Xcode: Missing Info.plist key for NSCameraUsageDescription

查看:1842
本文介绍了Xcode:缺少NSCameraUsageDescription的Info.plist密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GPUImage 添加到我的 Xcode 项目后,我的应用因缺少 Info.plist NSCameraUsageDescription 的密钥。

After adding GPUImage to my Xcode project, my app is getting denied for Missing an Info.plist key for NSCameraUsageDescription.


缺少 Info.plist 密钥 - 此应用程序尝试访问隐私敏感的
数据而没有使用说明。应用程序的 Info.plist 必须包含
NSCameraUsageDescription 键,其字符串值解释为
用户应用程序如何使用此数据。

Missing Info.plist key - This app attempts 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.

我已经通过几种不同的方式和10多个版本为我的plist添加了键和描述已经得到了相同的拒绝错误。

I have added the key and description to my plist in several different ways and over 10 builds have all gotten the same denial error.

这是我的 info.plist ,底部是Camera Usage键。

Here is my info.plist with the Camera Usage key at the bottom.

关于我为什么的任何想法当我清楚地在我的plist中定义时,仍然会被拒绝?

Any ideas on why I still get denied when I clearly have this defined in my plist?

推荐答案

您应该输入使用相机作为描述的目的。如果它没有给出目的应用程序将被拒绝。

You should enter the purpose of using camera as the description. If it does not give the purpose app will get rejected.

你应该添加类似
Appname需要访问相机拍摄个人资料照片 Appname需要访问相机才能上传产品图片

来自apple:检查这个链接。

From the apple: Check this link.


为了保护用户隐私,iOS 10.0上或之后链接的iOS应用程序以及访问设备摄像头的
必须静态声明意图
这样做。在应用程序的
Info.plist文件中包含NSCameraUsageDescription键,并为此键提供目的字符串。如果您的应用
尝试访问设备的相机而没有相应的用户
字符串,则您的应用会退出。

To protect user privacy, an iOS app linked on or after iOS 10.0, and that accesses the device’s camera, must statically declare the intent to do so. Include the NSCameraUsageDescription key in your app’s Info.plist file and provide a purpose string for this key. If your app attempts to access the device’s camera without a corresponding purpose string, your app exits.

这篇关于Xcode:缺少NSCameraUsageDescription的Info.plist密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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