简体   繁体   English

“Info.plist文件中缺少用途字符串”实际上并没有丢失

[英]“Missing Purpose String in Info.plist File” not actually missing

Attached is what I get from Apple after uploading to the App Store Connect, even though all of these are included in my info.plist. 附件是我上传到App Store Connect后从Apple获得的内容,即使所有这些都包含在我的info.plist中。 I have tried nearly 10 times to change the name of my string ranging from long strings (eg We get the bluetooth in order to connect with certain DJI models that require bluetooth to get telemetry and other data from the drone.) to short strings (eg We display the user's location on Mapview.) 我已经尝试了近10次更改我的字符串的名称,范围从长字符串(例如,我们得到蓝牙,以便连接某些DJI模型,需要蓝牙来获取无人机的遥测和其他数据。)到短字符串(例如我们在Mapview上显示用户的位置。)

All other questions I have seen claim the simple solution is to include the string, which I'm already doing! 我所看到的所有其他问题都声称简单的解决方案是包含我已经在做的字符串! Does this have something to do with DJI's sdk? 这与DJI的sdk有关吗? I would think just including this in MY info.plist would be enough. 我认为在MY info.plist中包含这个就足够了。 The main issue seems to be with the bluetooth permissions as another app I am trying to upload returns the same issue. 主要问题似乎是蓝牙权限,因为我试图上传的另一个应用程序返回相同的问题。

的Info.plist

"Dear Developer, “亲爱的开发者,

We identified one or more issues with a recent delivery for your app, "DJI Swift Demo". 我们确定了您的应用最近发布的一个或多个问题,“DJI Swift Demo”。 Please correct the following issues, then upload again. 请更正以下问题,然后重新上传。

Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. Info.plist中缺少用途字符串 - 您的应用程序代码引用一个或多个访问敏感用户数据的API。 The app's Info.plist file should contain a NSBluetoothPeripheralUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. 该应用程序的Info.plist文件应包含一个NSBluetoothPeripheralUsageDescription键,其中包含面向用户的目的字符串,清楚而完整地解释了您的应用程序需要数据的原因。 Starting Spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string. 从2019年春季开始,提交给App Store访问用户数据的所有应用都需要包含目的字符串。 If you're using external libraries or SDKs, they may reference APIs that require a purpose string. 如果您使用的是外部库或SDK,则它们可能会引用需要用途字符串的API。 While your app might not use these APIs, a purpose string is still required. 虽然您的应用可能不使用这些API,但仍需要一个目的字符串。 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. 您可以联系库或SDK的开发人员,并请求他们发布不包含API的代码版本。 Learn more ( https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy ). 了解详情( https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy )。

Though you are not required to fix the following issues, we wanted to make you aware of them: 虽然您不需要修复以下问题,但我们想让您了解它们:

Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. Info.plist中缺少用途字符串 - 您的应用程序代码引用一个或多个访问敏感用户数据的API。 The app's Info.plist file should contain a NSLocationWhenInUseUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. 应用程序的Info.plist文件应包含一个NSLocationWhenInUseUsageDescription键,其中包含面向用户的用途字符串,清楚而完整地解释了您的应用程序需要数据的原因。 Starting Spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string. 从2019年春季开始,提交给App Store访问用户数据的所有应用都需要包含目的字符串。 If you're using external libraries or SDKs, they may reference APIs that require a purpose string. 如果您使用的是外部库或SDK,则它们可能会引用需要用途字符串的API。 While your app might not use these APIs, a purpose string is still required. 虽然您的应用可能不使用这些API,但仍需要一个目的字符串。 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. 您可以联系库或SDK的开发人员,并请求他们发布不包含API的代码版本。 Learn more ( https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy )." 了解更多信息( https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy )。“

Instead of verifying the plist information in XCode, please look into the plist inside ipa. 请不要在XCode中验证plist信息,而是查看ipa中的plist。

Please follow the below steps to verify plist inside ipa. 请按照以下步骤验证ipa内的plist。

Let say, your ipa file is Demo.ipa 比方说,你的ipa文件是Demo.ipa

  1. Copy the Demo.ipa to DemoBkup.ipa 将Demo.ipa复制到DemoBkup.ipa
  2. Rename it to DemoBkup.zip 将其重命名为DemoBkup.zip
  3. Extract the zip file. 解压缩zip文件。 (Double click the zip file) (双击zip文件)
  4. The Extracted file will contain "Payload" folder.Get into Payload folder. 提取的文件将包含“Payload”文件夹。访问Payload文件夹。
  5. You will find the Demo package. 你会发现Demo包。 Right click and tap "Show Package contents" 右键单击并点击“显示包内容”
  6. Search for your Info.plist. 搜索您的Info.plist。

Validate all the information you gave in XCode is present in this plist. 验证您在XCode中提供的所有信息都存在于此plist中。

Change your info.plist keys with the keys Privacy - Bluetooth Peripheral Usage Description , Privacy - Location When In Use Usage Description . 使用密钥更改info.plist密钥Privacy - Bluetooth Peripheral Usage DescriptionPrivacy - Location When In Use Usage Description Check the given screenshot for reference: 检查给定的屏幕截图以供参考: 在此输入图像描述

Do check the plist file referenced by the scheme you are building. 请检查您正在构建的方案引用的plist文件。 I think the plist file you are making change is not the same referenced by the scheme from what you are building the ipa file to submit to App Store. 我认为您正在进行更改的plist文件与您正在构建要提交到App Store的ipa文件的方案所引用的文件不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xcode-Info.plist文件中缺少目的字符串 - Xcode - Missing Purpose String in Info.plist File Appstore 连接错误:Info.plist 文件中缺少目的字符串 - Error Appstore connect : Missing Purpose String in Info.plist File 应用程序因Info.plist文件麦克风中缺少目的字符串而被拒绝,但我无法在info.plist中添加说明 - App got rejected for missing Purpose String in Info.plist File Microphone, but I can't add the description in info.plist IOS 应用程序在添加 info.plist 时缺少用途字符串 - IOS app missing purpose string in info.plist while it is added Info.plist 中缺少用于照片访问的目的字符串 - Missing Purpose String in Info.plist for Photo access ITMS-90683:Info.plist NSCameraUsageDescription 中缺少目的字符串 - ITMS-90683: Missing Purpose String in Info.plist NSCameraUsageDescription 错误 ITMS-90683:Info.plist 中缺少目的字符串 - ERROR ITMS-90683: Missing Purpose String in Info.plist ITMS-90683:Info.plist 中缺少目的字符串 - ITMS-90683: Missing Purpose String in Info.plist Flutter ios 应用程序提交:Info.plist 中缺少目的字符串 - Flutter ios app submission: Missing Purpose String in Info.plist 应用商店在 Info.plist 错误中缺少目的字符串 - App store Missing Purpose String in Info.plist error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM