I'm trying to build a Command Line app that uses CoreBluetooth. Problem is, it doesn't work on command line apps.
I've moved the my CoreBluetooth code (a class that implements the CBCentralManagerDelegate protocol - let's call this class myBLEManager) from the Command Line app project to another Mac OS GUI App.
I ran some tests in ViewDidLoad() -- supersample, I just init a myBLEManager that creates an instance of CBCentralManager on initialization, then calls scanForPeripherals.
This is what I do in both the CLI and GUI projects. Difference is centralManagerDidUpdateState never gets called in the CLI project. but it does in the GUI Mac app.