The app's Info.plist file should contain a NSBluetoothAlwaysUsageDescription key while the key is in the plist file

后端 未结 6 2093
忘掉有多难
忘掉有多难 2021-01-03 19:51

First of all, I would like to state that I already looked at Stack Overflow post here and adding either the one mentioned by either iCoder & Deepak didn\'t solve the pro

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-03 20:31

    Well, I fixed this issues.

    if your app is using bluetooth so you must add this into info.plist.

    NSBluetoothAlwaysUsageDescription

    Our app uses bluetooth to ...do something...

    if your app doesn't need bluetooth but it's prompted with unexpectedly.

    then:

    open Xcode : go to remove CoreBluetooth.framework:

    1. -> yourproject -> frameworks -> CoreBluetooth.framework
    2. -> yourproject -> Build Phases -> Type Search to find "Bluetooth" (remove all related "Bluetooth")

    It's works for me! Hope will help you.

提交回复
热议问题