Hi,
I'm working on an SPM library that uses CoreBluetooth. Since I need to work with Bluetooth in background, I've set CBCentralManagerOptionRestoreIdentifierKey
option to my instance of CBCentralManager.
When I run the unit tests I encounter the following exception:
Thread 1: "State restoration of CBCentralManager is only allowed for applications that have specified the "bluetooth-central" background mode"
Of course, my demo application that I use to test the library has the bluetooth-central
background mode checked.
I think the issue is related to the fact that when the test target is executed, there is no associated application. Can background modes be applied to the package? How can this be resolved?