jym,求解惑:
今天试用了一下qt6开发蓝牙,先申请个权限:
"qApp->requestPermission( bluetoothPermission, this, [=]( const QPermission &permission ) ..."
结果运行在Android申请权限正常,在iOS和Mac上,总是提示:”Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plist“
实际上,Info.plist 已经声明了权限:”
<key>NSBluetoothAlwaysUsageDescription</key>
<string>...</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>...</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>...</string>“
没想明白咋回事儿,感谢。
今天试用了一下qt6开发蓝牙,先申请个权限:
"qApp->requestPermission( bluetoothPermission, this, [=]( const QPermission &permission ) ..."
结果运行在Android申请权限正常,在iOS和Mac上,总是提示:”Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plist“
实际上,Info.plist 已经声明了权限:”
<key>NSBluetoothAlwaysUsageDescription</key>
<string>...</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>...</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>...</string>“
没想明白咋回事儿,感谢。
展开
9
21