NordicSemiconductor / IOS-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
590 stars 205 forks source link

"[CoreBluetooth] XPC connection invalid" error #103

Closed Sikandarkhan closed 3 years ago

Sikandarkhan commented 3 years ago

Greetings, Once the app has launched, I'm getting an error in the Xcode console that says: "[CoreBluetooth] XPC connection invalid"

Below is what I'm using hardware/software wise:

macOS Catalina v10.15.4 Xcode v11.5 iPhone 6 -- iOS v12.3

I also made sure to add the NSBluetoothAlwaysUsageDescription and NSBluetoothPeripheralUsageDescription permissions to the info.plist file.

philips77 commented 3 years ago

This is just a warning. It happens when a CBCentralManager instance is disposed. In the app and in our libraries we often use one manager instance per profile to separate functionality and allow multiple delegates. iOS would prefer a singleton which lives as long as the app, but everything works as expected with multiple instances.

Sikandarkhan commented 3 years ago

After the update, I am not getting values for systolic and diastolic. Only seeing battery %

IMG_3ACD5297807D-1

please suggest me on this.

Sikandarkhan commented 3 years ago

I realised the issue is with Bluetooth pairing process. After unpairing and pairing to Bluetooth this code started working appropriately.

I was spending days and days to debug code and writing queries to firmware developers.

Glad that this simple fix resolved my query. IMG_599869406662-1

Hope this answer will be helpful to others in future.