OSX: Bluetooth permissions?


I am wondering how I can set permissions so that my OSX standalone app can access bluetooth?

Here is my scenario:
I am using JUCE on a standalone app on OSX.
In the Audio/Midi settings dialog, provided by JUCE, there is a button called “Bluetooth MIDI”. I would like to use it to pair my bluetooth midi keyboard with the app.

But: as soon as I click that button, my app crashes.
In Xcode I see the following information:

“his app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.”

So seems I have to somehow enable bluetooth permissions.
Any idea how I would do that? I am unfamiliar with plist files.
Is there an option in the Projucer?

I am on OSX 11.4 on an Intel Mac, using JUCE 6.0.7.

Yes - you need to set this in the exporter settings for macOs in projucer - see attached image:

Now I am a bit embarrassed. The option is actually quite obvious.
Seems to work now, with “Bluetooth Access” enabled. :slight_smile: