Closed xinsight closed 6 years ago
Did a bit more digging and it seems that the XPC failure [CBXpcConnection _handleInvalid]
eventually sets the CBCentralManager.state
to .unsupported
which triggers a call to -CentralProxy.stopScan
which calls -CBCentralManager.stopScan()
. And you can't stop scanning when the state is unsupported or powered down. I'll make a PR.
Thank you for the very nice find, will merge promptly.
Hi,
When running this code in the simulator, this code warnings on the console:
Is there a way to avoid the
API MISUSE
warning? I haven't been able to determine what the actual command is that is triggering the warning, but it must be getting called from within SwiftyBluetooth.Any ideas?