gpt4 book ai didi

ios - iOS "TestFlight"构建需要目的字符串

转载 作者:行者123 更新时间:2023-11-29 05:53:37 25 4
gpt4 key购买 nike

我正在使用“react-native-webview”在 Android 和 iOS 上渲染 html。我已经创建了应用程序并准备创建构建,在 Android 上我已经成功创建了调试构建,但在 iOS 上,我们可以生成 ipa 文件,但无法上传到“TestFlight”。正如我们所看到的,这个插件在后台使用“地理位置”来获取移动 WebView 上网页的当前位置(我已经检查了其他第 3 方库和 SDK,但没有找到)。但在我的应用程序中,我没有使用与位置相关的任何类型的权限,只是以 JSON 字符串格式呈现可用的 html。

From App Store we are getting the Location related permission. The following email we are getting:

Dear Developer, We identified one or more issues with a recent delivery for your app, "app-name". Please correct the following issues, then upload again. "Missing Purpose String in Info.plist File. Your app's code references one or more APIs that access sensitive user data. 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. Starting spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string.If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. 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. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy)." "Missing Purpose String in Info.plist File. Your app's code references one or more APIs that access sensitive user data. 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. Starting spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string .If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. 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. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy)." Best regards, The App Store Team

他们需要**目的字符串**才能在 iOS“Info.plist”中发布我们的应用程序。

如果我们仅在 Info.plist 文件上使用此权限:

<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>This app does not uses any location.</string>

如果这个插件在内部使用地理位置,但我的应用不使用任何位置相关服务,可以吗?

最佳答案

检查SDK文档中的更新,因为他可能在删除此权限或其他一些解决方法后更新了新版本。由于此权限问题,我最近使用的大多数库已更新。
其次,您可以检查 SDK 代码并尝试自行删除权限,因为您的应用没有使用此权限,所以这对您来说不会有问题。


要搜索要删除的权限,您可以使用以下命令搜索代码中所有出现的权限。

grep -R "your Permission name" .

希望它对你有用!

关于ios - iOS "TestFlight"构建需要目的字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55412445/

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