xamarin - 使用 Telerik 库后缺少带有目的字符串的 NSCalendarsUsageDescription 键

标签 xamarin xamarin.forms xamarin.ios telerik app-store

我在我的表单项目中使用了 Telerik ListView 。昨天,我通过 Test Flight 将其上传到 App Store connect。它是从应用程序加载器上传的,但被苹果拒绝,邮件如下:

应用商店连接

Dear Developer, We identified one or more issues with a recent delivery for your app, "Local183". Please correct the following issues, then upload again. "Missing Purpose String in Info.plist File. Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSCalendarsUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string.If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy)."

Best regards,

The App Store Team

我没有在代码中的任何地方使用任何日历访问代码,但他们仍然提出了这样的问题,我不知道为什么?但在实现 Telerik 之前从未发生过这种情况,因为我已经将应用程序的 2-3 个版本上传到应用程序商店连接,并且从未失败。

最佳答案

嗯,其实很简单。

您的应用程序 (PCL) 必须引用 Telerik.XamarinForms.Input,因为您的 PCL 正在使用此 dll,苹果假定您已在应用程序中使用它,因此必须具有从他们这边拒绝了

如何解决这个问题

首先,如果 Apple 认为您需要日历权限,那么您就需要日历权限,您无能为力

如何添加权限在您的 info.plist 文件中添加以下权限:

<key>NSCalendarsUsageDescription</key>
<string>*your_app_name* would like to access your calender</string>

添加后一切都应该没问题

如果查询恢复。

关于xamarin - 使用 Telerik 库后缺少带有目的字符串的 NSCalendarsUsageDescription 键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52112232/

相关文章:

xamarin - 如何在所有 xamarin 页面之间共享类实例?

c# - 在 Monotouch 中子类化和覆盖 UITextField

c# - 无法从 C# PCL 添加对 F# PCL 的引用

Xamarin 窗体 : How to change the back button color

listview - 如何将 ListView 中元素的索引绑定(bind)到第一个 ListView 内第二个 ListView 的 ItemsSource 中?

xamarin - 在XF中是否可以使用luberda-molinet/FFImageLoading代码替代svg图像

ios - 形状沿弧线动画可见持续时间与实际持续时间不同

visual-studio - Visual Studio 2017 中的 Xamarin.iOS 项目给出自动配置错误

c# - JsonConvert.DeserializeObject 仅对 Xamarin 应用程序返回 null

Xamarin Forms MessagingCenter Subscribe 调用了两次