Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 6.0.0
-
None
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
- is replaced by
-
QTCREATORBUG-26666 Qt Creator 6 Cannot Run Applications That Use Bluetooth On macOS
- Closed