diamantidis / DemoBluetooth

A demo Catalyst application that demonstrates how to use CoreBluetooth to advertise that the application is running on the device and scan for other nearby devices that are also running the application.
MIT License
10 stars 2 forks source link

DemoBluetooth[1092:350256] [CoreBluetooth] XPC connection invalid #1

Open Moonmonkey-Beep opened 4 years ago

Moonmonkey-Beep commented 4 years ago

Hi, love the tutorial, it's really helped me. But, I get the above error in the console.

I thought it was me and downloaded the project from GitHub and I get exactly the same error. Any idea how I can resolve?

diamantidis commented 4 years ago

Hey @tomwoodhams 👋 !!

Glad to hear that the post helped you!

I managed to reproduce error by clicking either the Start Advertising or the Start Scanning twice. Do you remember if that was the case for you also?

I have created a branch and a PR https://github.com/diamantidis/DemoBluetooth/pull/2 with a proposed solution, so feel free to test this and let me know if that fixes your issue.

Moonmonkey-Beep commented 4 years ago

Hi, yes, that fixes it. I still get DemoBluetooth[2358:1349589] [general] Connection to daemon was invalidated but working now. Thanks for your help.

diamantidis commented 4 years ago

Cool!! I've just merged the fix into develop. I will take a look on this error whenever I get some time and I will let you know here. Thanks a lot for the feedback!!