QBluetooth on iOS
Has anyone had success with QBluetooth libraries on iOS? I'm getting
[CoreBluetooth] XPC connection invalid
when I start the device discovery agent. The same project works fine on android.
What version of Qt ?
What version of iOS ?
Did you check that you have the permissions needed ?
Are you using an Info.plist that contains the usage description for Bluetooth ?
I compiled with Qt 5.8.0. Where do I find the iOS version? I think it's 6. It's a pretty new iPad and I keep it up to date, so I assume it's the latest.
I have an Info.plist file. I edited it with the xCode gui and added the key "Privacy - Bluetooth Peripheral Usage" with value "6.0" (the default).
@kgregory If you need Bluetooth LE, then take a look at my BT LE Example app
works well on Android, iOS, Amazon Fire
@ekkescorner does your qDebug() work on iOS? I have to switch over to xCode in order to load my app onto my device (haven't gotten it to work directly from QtCreator) and I don't get my qDebug() messages in xCode.
@kgregory I'm only deploying from QtCreator to the device
ok I figured out how to deploy from QtCreator. I noticed that it generates a new Info.plist and erases the key I added whenever I hit 'run'. What do you do about that?
It's explained in the iOS platform notes.
Stokestack last edited by
@ekkescorner Nice app, ekke. Thanks.
I was troubled by the "XPC connection invalid" error in my app, but guess what: It happens in yours too. And since yours seems to work nicely, I'm moving on...