gpt4 book ai didi

ios - NSLocationWhenInUseUsageDescription 警告,但我已经添加了它

转载 作者:IT王子 更新时间:2023-10-29 05:23:16 27 4
gpt4 key购买 nike

虽然我已经添加了:

NSLocationWhenInUseUsageDescription

我不断收到此警告:

This app has attempted 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

仅供引用:我在应用程序中有多个 Info.plist。不确定该怎么做。

最佳答案

同时添加

NSLocationAlwaysAndWhenInUseUsageDescription

NSLocationWhenInUseUsageDescription

plist 中的键解决了我的问题。

    <key>NSLocationAlwaysUsageDescription</key>
<string>Your location is required for xyz benefits for you</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your location is required for xyz benefits for you</string>

关于ios - NSLocationWhenInUseUsageDescription 警告,但我已经添加了它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46193797/

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