[英]Xcode - Missing Purpose String in Info.plist File
I am trying to upload a new version of my app to iTunes Connect from Xcode. 我试图将我的应用程序的新版本从Xcode上传到iTunes Connect。 I keep getting an email saying my app's "
Info.plist
file should contain a NSCalendarsUsageDescription key" 我一直收到一封电子邮件,说我的应用程序的“
Info.plist
文件应包含NSCalendarsUsageDescription密钥”
I have already added these strings to my Info.plist
: 我已经将这些字符串添加到我的
Info.plist
:
<key>NSMicrophoneUsageDescription</key>
<string>microphone use</string>
<key>NSCalendarsUsageDescription</key>
<string>calendar use</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>photo and video use.</string>
But, I still get the email that my Info.plist
is missing the NSCalendarsUsageDescription key
但是,我仍然收到有关
Info.plist
缺少NSCalendarsUsageDescription key
的电子邮件
Is there something else I need to add? 还有什么我需要补充的吗? Apple's website says I need to "Use the specified APIs to request authorization to use the data or resource."
苹果公司的网站说,我需要“使用指定的API来请求使用数据或资源的授权。” I am new to coding and don't know what this means!
我是编码新手,不知道这意味着什么!
https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy
It is not enough to write "calendar use". 仅仅写“日历用途”是不够的。 The app's Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data.
应用程序的Info.plist必须包含NSCalendarsUsageDescription键,该键具有字符串值,该字符串值向用户说明应用程序如何使用此数据。 So provide a better explanation of why your app needs to access this data.
因此,请提供有关您的应用为何需要访问此数据的更好的解释。
我通过将使用情况描述字符串添加到“自定义iOS目标属性”来解决此问题,而不是仅将它们添加到我的info.Plist
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.