是什么让 NSCalendarsUsageDescription 成为必需? [英] What makes NSCalendarsUsageDescription required?
问题描述
当我上传到 iTunes Connect 时,我的应用程序收到错误,指出未提供 NSCalendarsUsageDescription
隐私.我知道此信息现在是强制性的,但是我不知道我的应用在什么地方以及在何处使用了需要此隐私使用说明的内容.
When I upload to iTunes Connect, my app gets the error that the NSCalendarsUsageDescription
privacy is not provided. I am aware that this information is now mandatory, however I am not aware what and where my app uses something that would require this privacy usage description.
我的应用在做什么/使用它需要 NSCalendarsUsageDescription
?
What is my app doing/using that it requires a NSCalendarsUsageDescription
?
Dear developer,
We have discovered one or more issues with your recent delivery for "MyApp". To process your delivery, the following issues must be corrected:
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team
不是重复的,因为该解决方案不起作用,因为我已经对第一个答案发表了评论,并且可能的重复实际上并没有回答这个问题(通常)是什么使此使用说明成为必需的.
Not a duplicate because of the fact that the solution didn't work as I already commented on the first answer AND the fact that the possible duplicate doesn't actually answer the question what (generally) makes this usage description required.
推荐答案
您可以尝试使用 nm
工具在您的框架二进制文件中查找 EventKit 特定符号,例如:
You could try using nm
tool to look for EventKit specific symbols in your frameworks binaries, something like:
nm YourFramework.framework/YourFramework | grep EK # EK is a prefix for EventKit classes
或者单行(寻找没有扩展名的文件,也忽略CodeResources以减少不相关的输出):
Or one-liner (look for files without extension, also ignore CodeResources to reduce irrelevant output):
find YourApp/Frameworks ! -name '*CodeResources*' -type f ! -name "*.*" -exec nm -o -- {} + | grep EK
如果有,你会看到类似:
If there is such you will see something like:
0000000000003fdb t -[ClusterPrePermissions EKEquivalentEventType:]
U _OBJC_CLASS_$_EKEventStore
要了解有关 nm
的更多信息,请在终端中运行 man nm
.
To learn more about nm
run man nm
in your terminal.
nm
工具在您想查看给定二进制文件包含哪些符号时非常有用.您可以为 nm
提供很多选项,但大多数情况下,无需任何参数即可运行它来回答以下问题:符号 X 是否存在于给定的二进制文件中?
The nm
tool is useful when you want to see which symbols a given binary contains. There are plenty of options that you can give to nm
but most of the time it is enough to run it without any arguments to answer questions like: is symbol X present in a given binary?
这篇关于是什么让 NSCalendarsUsageDescription 成为必需?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!