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

查看:47
本文介绍了错误 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:

亲爱的开发者:

我们发现您的应用最近交付的一个或多个问题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 或 Application加载程序将新的二进制文件上传到 iTunes Connect.

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

最好的问候,

应用商店团队

我的应用完全是用 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天全站免登陆