CoreBluetooth on Mac Command line application
问题 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