虽然我已经添加了:
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/