简体   繁体   English

Xcode-Info.plist文件中缺少目的字符串

[英]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.

相关问题 “Info.plist文件中缺少用途字符串”实际上并没有丢失 - “Missing Purpose String in Info.plist File” not actually missing Info.plist 文件中缺少目的字符串 - Xcode 10.1 和 iOS 10.0 - Missing Purpose String in Info.plist File - Xcode 10.1 & iOS 10.0 Appstore 连接错误:Info.plist 文件中缺少目的字符串 - Error Appstore connect : Missing Purpose String in Info.plist File 应用程序因Info.plist文件麦克风中缺少目的字符串而被拒绝,但我无法在info.plist中添加说明 - App got rejected for missing Purpose String in Info.plist File Microphone, but I can't add the description in info.plist ITMS-90683:Info.plist NSCameraUsageDescription 中缺少目的字符串 - ITMS-90683: Missing Purpose String in Info.plist NSCameraUsageDescription 错误 ITMS-90683:Info.plist 中缺少目的字符串 - ERROR ITMS-90683: Missing Purpose String in Info.plist ITMS-90683:Info.plist 中缺少目的字符串 - ITMS-90683: Missing Purpose String in Info.plist IOS 应用程序在添加 info.plist 时缺少用途字符串 - IOS app missing purpose string in info.plist while it is added Info.plist 中缺少用于照片访问的目的字符串 - Missing Purpose String in Info.plist for Photo access Flutter ios 应用程序提交:Info.plist 中缺少目的字符串 - Flutter ios app submission: Missing Purpose String in Info.plist
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM