Our app use CoreBluetooth framework to work with a bluetooth LE device. when run debug my project on Mac 12 beta (by Xcode 12.5 or Xcode 13 beta). it can not scan the device. When I test with an app download from App Store. it works normally. what is the difference ? this is a bug or a feature ? Note: my project works well on Mac 11
Can not scan Bluetooth low energy device on Mac 12 beta
I found the root cause. on Mac 12, I need to change the function scan bluetooth device
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], CBCentralManagerScanOptionAllowDuplicatesKey, nil];
[self.CM scanForPeripheralsWithServices:nil options:options];
before I only use function
[self.CM scanForPeripheralsWithServices:nil options:nil];
So, I'm not sure this is new feature or bug on Mac 12. Because set CBCentralManagerScanOptionAllowDuplicatesKey will affect to battery of device.