如何解决“缺少Info.plist密钥... NSPhotoLibraryUsageDescription” [英] How to resolve "Missing Info.plist key ... NSPhotoLibraryUsageDescription"

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

问题描述

我使用应用程序加载程序完全上传我的.ipa文件,但我没有找到内置的Itunes Connect,我也收到苹果支持的这条消息:我们发现了您最近交付的更新HF的一个或多个问题。要处理您的交付,必须更正以下问题:
缺少Info.plist密钥 - 此应用程序尝试访问隐私敏感数据而没有使用说明。应用程序的Info.plist必须包含带字符串的NSPhotoLibraryUsageDescription密钥值向用户解释应用程序如何使用此数据。

I upload my .ipa file completely using application loader but i didn't find the built on Itunes Connect also i receive this message from apple support :"We have discovered one or more issues with your recent delivery for "Update HF". To process your delivery, the following issues must be corrected: Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data. "

我将以下代码添加到config.xml文件中,但我仍然有同样的错误:

i add the following codes to config.xml file but i still have the same error:





推荐答案

您可以在plist中添加以下行。

You can add below lines in your plist.

<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) uses photos</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>$(PRODUCT_NAME) uses photos</string>

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

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