Estimote / iOS-Fleet-Management-SDK

Estimote Fleet Management SDK for iOS
https://developer.estimote.com
MIT License
1.18k stars 398 forks source link

iOS 10 ESTBeaconConnection - CoreBluetooth XPC Error #239

Closed gnazarkin closed 4 years ago

gnazarkin commented 7 years ago

Problem started with #233 on iOS 10 and that error was resolved, but now when calling ESTBeaconConnection *connection = [ESTBeaconConnection connectionWithProximityUUID:uuid major:major minor:minor delegate:self]; it throws... [CoreBluetooth] XPC connection invalid and doesn't connect to beacon

gnazarkin commented 7 years ago

@ferologics Any updates on this? Something similar mentioned on the forums when monitoring. https://forums.estimote.com/t/swift-3-xcode-8-xpc-connection-invalid-issue/4822/9

ferologics commented 7 years ago

@gnazarkin did you try acorsi's solution?

gnazarkin commented 7 years ago

@ferologics Yes I tried it and didn't help

ferologics commented 7 years ago

@gnazarkin do you have network, location and blue-tooth access enabled as well?

gnazarkin commented 7 years ago

@ferologics Yes

raphaelseher commented 7 years ago

Maybe useful from the apple developer forum. Here the problem was caused, because CBPeripheralManager was not an instance variable and so CoreBluetooth was not able to initialise successfully.

https://forums.developer.apple.com/thread/54510

shattars3d commented 7 years ago

new iOS 10.2 @gnazarkin @ferologics Other improvements and fixes Adds notification support for HomeKit accessories including window coverings, occupancy, motion, door/window, smoke, carbon monoxide, and water leak sensors Adds notification support for HomeKit accessories when software updates are available to HomeKit accessories Improves Bluetooth performance and connectivity with 3rd party accessories

ferologics commented 7 years ago

@gnazarkin did iOS 10.2 update change behaviour of the error in any way? Were you successful in resolving the problem?

gnazarkin commented 7 years ago

@ferologics I'll give it a try as soon as I can as I still need to resolve the issue myself. Swamped with another project right now

aj-bartocci commented 7 years ago

I kept getting getting the "[corebluetooth] xpc connection invalid" error when trying to connect to beacons using the ESTDeviceManager with iOS 10. Connections worked fine with iOS 9 but with 10 it always timed out. I resolved the issue by adding "Privacy - Location When In Use Usage Description" permission to the plist file. @ferologics @gnazarkin

shattars3d commented 7 years ago

@aj-bartocci @ferologics @gnazarkin i have that in the .plist "Privacy - Location When In Use Usage Description" for iOS 10. The in app beacon ranging is still faulty.

aj-bartocci commented 7 years ago

That's strange, I have a separate app that ranges beacons and I haven't had any issues as of yet running on iOS 10. Although for that app I request the Always Usage @shattars3d

shattars3d commented 7 years ago

@aj-bartocci Are you using the Estimote framework in your personal project? Or are you using the example Estimote project?

aj-bartocci commented 7 years ago

I'm using the framework in my own project @shattars3d