nebs/hello-bluetooth

"XPC connection invalid" error with iOS version of app

Opened this issue · 1 comments

There seems to be an issue with the way the centralManager is instantiated for iOS apps such that an XPC connection invalid error occurs. At first I thought this was something to do with the App Sandbox (I had to enable the Bluetooth option in the App Sandbox capabilities for the Mac OS X target) but for iOS there is always a sandbox and you can not edit the options.

I am wondering is this is some difference between NSViewController used in the Mac OS version of the App and the UIViewController used in the iOS version of the app.

Any ideas here?

So I’m not sure if I’ve understood your issue correctly but CoreBluetooth does not work from the simulator. You have to test it on an actual device as far as I know.