Appstore连接错误:Info.plist文件中缺少目的字符串 [英] Error Appstore connect : Missing Purpose String in Info.plist File

查看:805
本文介绍了Appstore连接错误:Info.plist文件中缺少目的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的应用提交给App Store Connect进行审核.尽管该应用仍在审核中,但我已经收到一封电子邮件,通知我必须修复一个错误.这是消息的内容:

I've submitted my app for review to the App Store Connect. Although the app is still under review, I've received an email to inform me that I have to fix an error. Here is the content of the message:

亲爱的开发人员,

Dear Developer,

我们发现您的应用最近交付时存在一个或多个问题 XXXXX.您的交付已成功,但您可能希望更正 下一次发货时出现以下问题:

We identified one or more issues with a recent delivery for your app XXXXX. Your delivery was successful, but you may wish to correct the following issues in your next delivery:

"Info.plist文件中缺少目的字符串.您的应用程序代码 引用访问敏感用户数据的一个或多个API.这 应用的Info.plist文件应包含一个 NSLocationAlwaysUsageDescription键具有面向用户的目的 字符串,清楚,完整地说明您的应用为何需要数据. 从2019年春季开始,所有提交到App Store且可以访问的应用程序 用户数据必须包含目的字符串.如果您 使用外部库或SDK,它们可能会引用以下API 需要一个目的字符串.虽然您的应用可能未使用这些API,但是 目的字符串仍然是必需的.您可以联系的开发商 库或SDK,并要求他们发布其代码的版本 不包含API.

"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 NSLocationAlwaysUsageDescription 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.

解决问题后,您可以使用Xcode或应用程序 加载程序可将新的二进制文件上传到iTunes Connect.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.

最诚挚的问候,

App Store团队

The App Store Team

我的应用程序完全由Expo构建而成,我不知道如何访问和修改Info.plist.

My app is fully built with Expo and I don't know how to access and modify the Info.plist.

有什么主意吗?

推荐答案

如果您使用的是Expo,则可以通过将infoPlist添加到app.json来添加解决方案,如下所示:

If you're using Expo, you can add solve by adding infoPlist to app.json like so:

  "expo": {
     "ios": {
       "bundleIdentifier": "com.app.myapp",
       "infoPlist": {
         "NSLocationAlwaysUsageDescription": "Some message to appease Apple.",
       },
     },
   }

展览会文档

这篇关于Appstore连接错误:Info.plist文件中缺少目的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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