Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. qt.permissions: Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plist
Qt 6.11 is out! See what's new in the release blog

qt.permissions: Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plist

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 5 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zhou Weixian
    wrote on last edited by
    #1

    I want't to request bluetooth permission in qt6.6.2.
    It works fine on Android but doesn't work on iOS or Mac OS.

    I'v set Info.plist in CmakeLists.txt:

    set_target_properties(MyProject PROPERTIES MACOSX_BUNDLE TRUE MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/resources/Info.macos.plist" )

    Info.plist:
    <key>NSBluetoothAlwaysUsageDescription</key> <string>Our app uses bluetooth to find, connect and transfer data between different devices</string>

    request in code:

    qApp->requestPermission( bluetoothPermission, this, [=]( const QPermission &permission ) {

    got error as title:
    qt.permissions: Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plist

    How do I fix this? thank you.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zzll
      wrote on last edited by
      #2

      Hello, I have also encountered this issue. Is it okay for me to use the plist file in the Qt Bluetooth shared folder? Once I try to modify the plist file, I will encounter the same error as you. Has your problem been resolved?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LQ123
        wrote on last edited by
        #3

        Hello, I also encountered this situation. Have you found a solution?

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jcelerier
          wrote on last edited by
          #4

          I had this situation, it turns out you have to link explicitly with Qt6::QDarwinBluetoothPermissionPlugin

          Paul ColbyP 1 Reply Last reply
          2
          • J jcelerier

            I had this situation, it turns out you have to link explicitly with Qt6::QDarwinBluetoothPermissionPlugin

            Paul ColbyP Offline
            Paul ColbyP Offline
            Paul Colby
            wrote last edited by
            #5

            @jcelerier said in qt.permissions: Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plist:

            I had this situation, it turns out you have to link explicitly with Qt6::QDarwinBluetoothPermissionPlugin

            Thank you!! This is exactly what I needed, and did not find anywhere else. If could give up-vote your reply multiple times, I would! 😊

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved