【发布时间】:2020-01-21 08:42:08
【问题描述】:
我从 App Store Connect 获得: 缺少 NSContactsUsageDescription 和 NSBluetoothAlwaysUsageDescription, 但是当我锁定我的 info.plist 时,我会看到这些属性。
接下来我该怎么做? 需要调试或查找缺少这些属性的位置?
【问题讨论】:
标签: ios xcode react-native-ios info.plist
我从 App Store Connect 获得: 缺少 NSContactsUsageDescription 和 NSBluetoothAlwaysUsageDescription, 但是当我锁定我的 info.plist 时,我会看到这些属性。
接下来我该怎么做? 需要调试或查找缺少这些属性的位置?
【问题讨论】:
标签: ios xcode react-native-ios info.plist
在ios/[app-name]/Info.plist获得许可
<key>NSContactsUsageDescription</key>
<string>This app requires contacts access to function properly.</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>App uses Bluetooth to find, connect and communicate with nearby devices. Please grant access.</string>
注意space,可以查看Info.plist作为源代码
如果你的目标是13以下的iOS,还需要加上NSBluetoothPeripheralUsageDescription
【讨论】:
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 这意味着您的代码或任何其他库或 SDK 可以使用其他权限,即使您不使用它,但您仍然需要提供隐私说明。