[CoreBluetooth] XPC connection invalid

Trying to implement the simply ranging app, but received “[CoreBluetooth] XPC connection invalid” after call the “startRangingBeaconsInRegion:” method.

this’s how to init the beaconManager:

[ESTConfig setupAppID:EST_APP_KEY andAppToken:EST_TOKEN];
self.beaconManager = [ESTBeaconManager new];
self.beaconManager.delegate = self;
[self.beaconManager requestWhenInUseAuthorization];

CLBeaconRegion *dummyRegion = [[CLBeaconRegion alloc]
                               initWithProximityUUID:[[NSUUID alloc]
                                                      initWithUUIDString:@"B9407F30-F5F8-466E-AFF9-25556B57FE6D"]
                               identifier:@"ranged region"];

[self.beaconManager startRangingBeaconsInRegion:dummyRegion];

After we call the method “startRangingBeaconsInRegion:” the app has no response on any delegate method other than just print out the “[CoreBluetooth] XPC connection invalid” on the console.

Xcode Version: 8.3.3
Objective C
Version SDK 4.0
Key classes: ESTBeaconManager, ESTBeaconManagerDelegate
Key method: startRangingBeaconsInRegion:

Is there any way to make the ranging work? i just want to make the ranging work when the app is in the foreground.

Thanks!

This “XPC connection invalid” looks like some error message coming from iOS’s Bluetooth stack itself, and I don’t think anyone has managed to find out exactly what causes it. My suspicion is, there’s some problem with the iPhone’s Bluetooth—maybe it’s off, or crashed, or smth?

Can you implement the rangingDidFail delegate, and see if there are any calls to it?