1.使用了相应的功能却没有在Info.plist中添加相应的隐私字段会出现的问题:
1.1 运行崩溃:下面是使用了蓝牙功能而没有在Info文件中说明蓝牙的用途而导致的崩溃
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.
解决方法:
在Info.plist文件中添加Privacy - Bluetooth Always Usage Description字段,说明app要使用蓝牙来干什么
1.1.1 要用户同意权限的只会弹出一次
- 如果用户没有同意,下次不会弹出,只能用户去设置里手动开启
- 蓝牙的弹框,删除app后,重装,会再次弹出
- 网络的弹框,删除app了,也不会再次弹出