Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26710

Running/debugging apps which use Bluetooth are not possible on macOS 12

    XMLWordPrintable

    Details

    • Platform/s:
      macOS

      Description

      Problem:  User apps which use Bluetooth, crash immediately on starting from within Qt Creator (not debug, just plain run).

      Reason:  On macOS 12 it seems NSBluetoothAlwaysUsageDescription is required in the Info.plist file for apps that use Bluetooth, and also the parent process which started the app. On earlier versions, NSBluetoothPeripheralUsageDescription sufficed, but this is no longer the case. Qt Creator v6.0.0 doesn't include this key (though it includes the older key) in its Info.plist file. Note that both Qt Creator and the user app's Info.plist must have this key.

      Solution: Editing the Info.plist file of Qt Creator and just adding a NSBluetoothAlwaysUsageDescription key with the same string as the existing NSBluetoothPeripheralUsageDescription key solves the issue (verified). Please consider adding this by default in Qt Creator. Edited file is attached.

       

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              con Eike Ziller
              Reporter:
              pvaibhav.tobyrich Prashant Vaibhav
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes