0

在 testFlight 上部署应用程序我遇到以下问题,

应用程序的 Info.plist 文件应包含一个 NSLocationAlwaysUsageDescription 键和一个面向用户的目的字符串,清楚而完整地解释您的应用程序需要数据的原因。

即使我在 Info.plist 文件中包含了位置访问所需的密钥。

该应用程序已提交以供审核和测试,但每次提交时我仍然收到一封电子邮件,内容如下:

版本:1.0.2 版本:74)有一个或多个问题

我已经在这里检查了解决方案,以便也添加不推荐使用的密钥

在此处输入图像描述

错误 Appstore 连接:Info.plist 文件中缺少目的字符串

对不起,也许我在这里遗漏了什么?

4

1 回答 1

5

右键单击您的 Info.plist文件。然后点击“打开方式”->“源代码”。

现在找到并替换下面的键,

<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>your description.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>your description</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>your description.</string>

您的属性列表视图info.plist未显示

Privacy - Location always and when In Use Usage Description

Privacy - Location always Usage Description

相反,它显示NSLocationAlwaysAndWhenInUseUsageDescriptionNSLocationAlwaysUsageDescription

于 2020-08-20T09:35:37.903 回答