The bluetooth cannot scan when use ScanPeripheralWithService

I use CoreBluetooth to develop bluetooth application, but now I use scanPeripheralWithService, gave the UDID and then the method was never invoked `State : Powered On

State: Powered on )  is writing  to /var/mobile/Containers/Data/Application/7A8F6CF8-E1E8-49E4-AEC1-450A30DC9071/Documents/29-06-2022.log

Discovered %s at %d nil -70

Bluetooth Manager --> didDiscoverPeripheral, RSSI:-70 data:["kCBAdvDataRxPrimaryPHY": 1, "kCBAdvDataRxSecondaryPHY": 0, "kCBAdvDataTimestamp": 678161943.056277, "kCBAdvDataIsConnectable": 0]-- peripheral:<CBPeripheral: 0x280b91360, identifier = F87EDA74-A896-1320-AEE4-4DCA51F2FD51, name = (null), mtu = 0, state = disconnected>

advertisementData is ["kCBAdvDataRxPrimaryPHY": 1, "kCBAdvDataRxSecondaryPHY": 0, "kCBAdvDataTimestamp": 678161943.056277, "kCBAdvDataIsConnectable": 0]

Bluetooth Manager --> didDiscoverPeripheral, RSSI:-70 data:["kCBAdvDataRxPrimaryPHY": 1, "kCBAdvDataRxSecondaryPHY": 0, "kCBAdvDataTimestamp": 678161943.056277, "kCBAdvDataIsConnectable": 0]-- peripheral:<CBPeripheral: 0x280b91360, identifier = F87EDA74-A896-1320-AEE4-4DCA51F2FD51, name = (null), mtu = 0, state = disconnected>)  is writing  to /var/mobile/Containers/Data/Application/7A8F6CF8-E1E8-49E4-AEC1-450A30DC9071/Documents/29-06-2022.log

Discovered %s at %d nil -50

Bluetooth Manager --> didDiscoverPeripheral, RSSI:-50 data:["kCBAdvDataTimestamp": 678161943.088981, "kCBAdvDataRxSecondaryPHY": 0, "kCBAdvDataIsConnectable": 0, "kCBAdvDataRxPrimaryPHY": 1]-- peripheral:<CBPeripheral: 0x280b914a0, identifier = 36954FD9-A8B4-B112-EBA2-844EAC80B32C, name = (null), mtu = 0, state = disconnected>

advertisementData is ["kCBAdvDataTimestamp": 678161943.088981, "kCBAdvDataRxSecondaryPHY": 0, "kCBAdvDataIsConnectable": 0, "kCBAdvDataRxPrimaryPHY": 1]

The bluetooth cannot scan when use ScanPeripheralWithService
 
 
Q