CoreBluetooth
CBCentralManager has no option to choose a controller, and it reports each device as an identifier that only that Mac recognizes.

Swift Bluetooth
Dongl is a USB Bluetooth Low Energy adapter you drive from Swift with SimpleSwiftBLE. Scan, connect, and pair through its own radio on macOS, with real device addresses and Swift concurrency from the first call.
















































Pre-order a Dongl, or flash the free Dongl firmware onto a Nordic nRF52840 Dongle or DK you already own.
Add https://github.com/simpleble/simpleswiftble with Swift Package Manager.
A plugged-in Dongl appears as its own adapter, next to the computer's Bluetooth. Take the adapters of the Dongl backend and your code runs on the Dongl.
Select the Dongl, then scan, connect, and read. This is the code for each step.
import SimpleSwiftBLE
let adapter = try Backend.getDongl().getAdapters().first!
print("\(adapter.identifier) [\(adapter.address)]")On a Mac, Swift reaches Bluetooth through CoreBluetooth, which always uses the system's own controller.
CBCentralManager has no option to choose a controller, and it reports each device as an identifier that only that Mac recognizes.
IOBluetoothHostController exposes only the default controller.
Moving a Mac to a USB Bluetooth adapter takes a system-wide nvram setting, and it changes Bluetooth for every app on the Mac.
CoreBluetooth hides a device's address behind an identifier only that Mac knows. A Dongl reports the real address and address type.
Each Dongl is another adapter with its own radio. Plug in one per test fixture.
Calls on different Dongls run in parallel, so a task group checks several devices at once.
Your code answers passkey and numeric-comparison prompts, with no system dialog. Bonds stay on the Dongl.
Test stations running the same firmware behave the same, whatever the Mac or macOS version.
Commercial customers work directly with the team that builds SimpleBLE and the Dongl firmware.
Dongl hardware ships with the firmware installed and includes a commercial license to use SimpleBLE through the Dongl backend.
Plug in a Dongl, add SimpleSwiftBLE with Swift Package Manager, and take the adapters of the Dongl backend with Backend.getDongl().getAdapters(). Each Dongl is an adapter with its own radio, and it works through the same API as the Mac's Bluetooth.
Plug in a Dongl, add SimpleSwiftBLE with Swift Package Manager, and take the adapters of the Dongl backend with Backend.getDongl().getAdapters(). Each Dongl is an adapter with its own radio, and it works through the same API as the Mac's Bluetooth.
Through a Dongl, yes. CoreBluetooth reports an identifier that only that Mac recognizes. A Dongl reports the real address and address type, so a Mac test station matches devices by the address printed on their label.
Through a Dongl, yes. CoreBluetooth reports an identifier that only that Mac recognizes. A Dongl reports the real address and address type, so a Mac test station matches devices by the address printed on their label.
Yes, with Dongls. macOS gives an application one built-in radio, and each Dongl is another adapter. Calls on different adapters run in parallel.
Yes, with Dongls. macOS gives an application one built-in radio, and each Dongl is another adapter. Calls on different adapters run in parallel.
No. Pairing through a Dongl happens without the operating system. Your app answers passkey and numeric-comparison requests itself, and bonds stay on the Dongl.
No. Pairing through a Dongl happens without the operating system. Your app answers passkey and numeric-comparison requests itself, and bonds stay on the Dongl.
No. The free Dongl firmware runs on a Nordic nRF52840 Dongle or DK for prototyping, testing, and non-commercial validation. Dongl hardware ships with the firmware installed and includes a commercial license to use SimpleBLE through the Dongl backend.
No. The free Dongl firmware runs on a Nordic nRF52840 Dongle or DK for prototyping, testing, and non-commercial validation. Dongl hardware ships with the firmware installed and includes a commercial license to use SimpleBLE through the Dongl backend.
SimpleBLE is source-available under the Business Source License 1.1 and free for non-commercial use. Evaluation needs no license. Commercial use needs a license, and one agreement covers your whole company, with no per-seat, per-device, or royalty fees. Each Dongl hardware unit includes a commercial license to use SimpleBLE through the Dongl backend.
SimpleBLE is source-available under the Business Source License 1.1 and free for non-commercial use. Evaluation needs no license. Commercial use needs a license, and one agreement covers your whole company, with no per-seat, per-device, or royalty fees. Each Dongl hardware unit includes a commercial license to use SimpleBLE through the Dongl backend.