Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QBluetooth on iOS
Qt 6.11 is out! See what's new in the release blog

QBluetooth on iOS

Scheduled Pinned Locked Moved Solved Mobile and Embedded
9 Posts 4 Posters 3.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kgregory
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kgregory
        wrote on last edited by
        #3

        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).

        ekkescornerE 1 Reply Last reply
        0
        • K kgregory

          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).

          ekkescornerE Offline
          ekkescornerE Offline
          ekkescorner
          Qt Champions 2016
          wrote on last edited by
          #4

          @kgregory If you need Bluetooth LE, then take a look at my BT LE Example app
          https://appbus.wordpress.com/2017/06/29/ekkes-bt-le-example-app/
          works well on Android, iOS, Amazon Fire

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.9 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          K StokestackS 2 Replies Last reply
          2
          • ekkescornerE ekkescorner

            @kgregory If you need Bluetooth LE, then take a look at my BT LE Example app
            https://appbus.wordpress.com/2017/06/29/ekkes-bt-le-example-app/
            works well on Android, iOS, Amazon Fire

            K Offline
            K Offline
            kgregory
            wrote on last edited by
            #5

            @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.

            ekkescornerE 1 Reply Last reply
            0
            • K kgregory

              @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.

              ekkescornerE Offline
              ekkescornerE Offline
              ekkescorner
              Qt Champions 2016
              wrote on last edited by
              #6

              @kgregory I'm only deploying from QtCreator to the device

              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
              5.15 --> 6.9 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kgregory
                wrote on last edited by
                #7

                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?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by SGaist
                  #8

                  It's explained in the iOS platform notes.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • ekkescornerE ekkescorner

                    @kgregory If you need Bluetooth LE, then take a look at my BT LE Example app
                    https://appbus.wordpress.com/2017/06/29/ekkes-bt-le-example-app/
                    works well on Android, iOS, Amazon Fire

                    StokestackS Offline
                    StokestackS Offline
                    Stokestack
                    wrote on last edited by
                    #9

                    @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...

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved