ITMS-90683:Info.plist 中缺少目的字符串

ITMS-90683: Missing Purpose String in Info.plist

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

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.

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

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

Version: 1.0.2 Build: 74) has one or more issues

我已经检查了这里的解决方案,以便也添加已弃用的密钥

抱歉,我可能遗漏了什么?

右键单击您的 Info.plist 文件。然后点击 'Open As' -> 'Source Code'.

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

<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