我在 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/