gpt4 book ai didi

ios - 应用程序的 Info.plist 必须包含 NSLocationAlwaysUsageDescription 和 NSLocationWhenInUseUsageDescription。

转载 作者:可可西里 更新时间:2023-11-01 17:12:26 32 4
gpt4 key购买 nike

我在 iTunes connect 中构建 ipa 文件时遇到问题。

如何解决这个问题我正在通过 PhoneGap Build 构建 apk。

这是我面临的问题

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data.

最佳答案

我已经尝试过这两种可行的解决方案。现在可以使用了

 <plugin name="cordova-plugin-geolocation">
<variable name="LOCATION_WHEN_IN_USE_DESCRIPTION" value="App would like to access the location." />
<variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="App would like to access the location." />
</plugin>

<plugin name="cordova-custom-config" version="*"/>
<config-file overwrite="true" parent="NSLocationAlwaysUsageDescription" platform="ios" target="*-Info.plist"> <string>Allow the app to know your location</string> </config-file>
<config-file overwrite="true" parent="NSLocationWhenInUseUsageDescription" platform="ios" target="*-Info.plist"> <string>Allow the app to know your location</string> </config-file>

关于ios - 应用程序的 Info.plist 必须包含 NSLocationAlwaysUsageDescription 和 NSLocationWhenInUseUsageDescription。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50388964/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com