是什么使得需要NSCalendarsUsageDescription? [英] What makes NSCalendarsUsageDescription required?

查看:822
本文介绍了是什么使得需要NSCalendarsUsageDescription?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我上载到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屋!

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