Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Bluetooth error con iOS
Forum Update on Monday, May 27th 2025

Bluetooth error con iOS

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 333 Views
  • 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.
  • V Offline
    V Offline
    vcasado
    wrote on last edited by
    #1

    Hi,

    I am developing an app that uses Bluetooth for multiplatform(Androdi/iOS) but, now I am messing with the iOS permissions part.

    As I want to use Bluetooth, I have added an Info.plist to the project, added on CMake... it builds and deploys, but, as soon as it starts, the app crashes, reporting in the Application Output:

    22:49:15: Starting remote process.
    QML debugging is enabled. Only use this in a safe environment.
    libc++abi: terminating due to uncaught exception of type NSException
    program received signal 6, thread:1855d5;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0000000000000000;04:479639f701000000;05:a0642a6f01000000;06:6e00000000000000;07:0300000000000000;08:814455f8bd8d2376;09:4140a915bc8d2376;0a:0002000000000000;0b:0b00000000000000;0c:0b00000000000000;0d:00f81f0000000000;0e:fb07000000000000;0f:45d8419e00000000;10:4801000000000000;11:c004fced01000000;12:0000000000000000;13:0600000000000000;14:0301000000000000;15:a005fced01000000;16:40411c8102000000;17:00452c8202000000;18:f04a0c8302000000;19:0100000000000000;1a:0000000000000000;1b:0000000000000000;1c:0000000000000000;1d:10642a6f01000000;1e:187145f701000000;1f:f0632a6f01000000;20:582561d601000000;21:00100040;metype:5;mecount:2;medata:10003;medata:6;memory:0x16f2a6410=50642a6f0100000078f1bc9e01592f6a;memory:0x16f2a6450=90642a6f01000000f85b39f701f07f2a;
    program received signal 6, thread:1855d5;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0000000000000000;04:0000000000000000;05:8096980000000000;06:6e00000000000000;07:0300000000000000;08:814455f8bd8d2376;09:4140a915bc8d2376;0a:e803000000000000;0b:0b00000000000000;0c:0b00000000000000;0d:00f81f0000000000;0e:fb07000000000000;0f:45d8419e00000000;10:4801000000000000;11:c004fced01000000;12:0000000000000000;13:0600000000000000;14:0301000000000000;15:a005fced01000000;16:40411c8102000000;17:00452c8202000000;18:f04a0c8302000000;19:0100000000000000;1a:0000000000000000;1b:0000000000000000;1c:0000000000000000;1d:d0632a6f01000000;1e:187145f701000000;1f:b0632a6f01000000;20:582561d601000000;21:00100040;metype:5;mecount:2;medata:10003;medata:6;memory:0x16f2a63d0=10642a6f01000000047cc29e0163616d;memory:0x16f2a6410=50642a6f0100000084f1bc9e81450028;
    program received signal 5, thread:1855d5;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0100000000000000;04:0000000000000000;05:8096980000000000;06:6e00000000000000;07:0300000000000000;08:e7ffffff00000000;09:c0a9fbed01000000;0a:e803000000000000;0b:0b00000000000000;0c:0b00000000000000;0d:00f81f0000000000;0e:fb07000000000000;0f:45d8419e00000000;10:3000000000000000;11:284ddcf201000000;12:0000000000000000;13:f8632a6f01000000;14:38642a6f01000000;15:a0642a6f01000000;16:40411c8102000000;17:00452c8202000000;18:f04a0c8302000000;19:0100000000000000;1a:0000000000000000;1b:0000000000000000;1c:0000000000000000;1d:10642a6f01000000;1e:247cc29e01000000;1f:e0632a6f01000000;20:247cc29e01000000;21:00100040;metype:6;mecount:2;medata:1;medata:19ec27c24;memory:0x16f2a6410=50642a6f0100000084f1bc9e81450028;memory:0x16f2a6450=90642a6f01000000f85b39f701f07f2a;
    program received signal 5, thread:1855d5;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0100000000000000;04:0000000000000000;05:8096980000000000;06:6e00000000000000;07:0300000000000000;08:e7ffffff00000000;09:c0a9fbed01000000;0a:e803000000000000;0b:0b00000000000000;0c:0b00000000000000;0d:00f81f0000000000;0e:fb07000000000000;0f:45d8419e00000000;10:3000000000000000;11:284ddcf201000000;12:0000000000000000;13:f8632a6f01000000;14:38642a6f01000000;15:a0642a6f01000000;16:40411c8102000000;17:00452c8202000000;18:f04a0c8302000000;19:0100000000000000;1a:0000000000000000;1b:0000000000000000;1c:0000000000000000;1d:10642a6f01000000;1e:247cc29e01000000;1f:e0632a6f01000000;20:247cc29e01000000;21:00100040;metype:6;mecount:2;medata:1;medata:19ec27c24;memory:0x16f2a6410=50642a6f0100000084f1bc9e81450028;memory:0x16f2a6450=90642a6f01000000f85b39f701f07f2a;
    program received signal 5, thread:1855d5;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0100000000000000;04:0000000000000000;05:8096980000000000;06:6e00000000000000;07:0300000000000000;08:e7ffffff00000000;09:c0a9fbed01000000;0a:e803000000000000;0b:0b00000000000000;0c:0b00000000000000;0d:00f81f0000000000;0e:fb07000000000000;0f:45d8419e00000000;10:3000000000000000;11:284ddcf201000000;12:0000000000000000;13:f8632a6f01000000;14:38642a6f01000000;15:a0642a6f01000000;16:40411c8102000000;17:00452c8202000000;18:f04a0c8302000000;19:0100000000000000;1a:0000000000000000;1b:0000000000000000;1c:0000000000000000;1d:10642a6f01000000;1e:247cc29e01000000;1f:e0632a6f01000000;20:247cc29e01000000;21:00100040;metype:6;mecount:2;medata:1;medata:19ec27c24;memory:0x16f2a6410=50642a6f0100000084f1bc9e81450028;memory:0x16f2a6450=90642a6f01000000f85b39f701f07f2a;
    22:49:16: Run ended.
    

    The Info.plist file is:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <key>CFBundleExecutable</key>
            <string>AAAAAA</string>
            <key>CFBundleIconFile</key>
            <string></string>
            <key>CFBundleIdentifier</key>
            <string>AAAAAA</string>
            <key>CFBundlePackageType</key>
            <string>APPL</string>
            <key>CFBundleSignature</key>
            <string>????</string>
            <key>LSMinimumSystemVersion</key>
            <string></string>
            <key>NSPrincipalClass</key>
            <string>NSApplication</string>
            <key>NSBluetoothAlwaysUsageDescription</key>
            <string>Qt BT Example wants to access your Bluetooth adapter</string>
            <key>NSSupportsAutomaticGraphicsSwitching</key>
            <true/>
    </dict>
    </plist>
    

    If I just don't include the Info.plist file, the app "works" fine, just when the Bluetooth Scan is launched, it reports the missing permissions error, so the app side and build is fine, the problem is in the plist.

    What am I doing wrong?

    Thank you so much
    Best regards

    J.HilkJ 1 Reply Last reply
    0
    • V Offline
      V Offline
      vcasado
      wrote on last edited by
      #2

      Nothing?

      piervalliP 1 Reply Last reply
      0
      • V vcasado

        Nothing?

        piervalliP Offline
        piervalliP Offline
        piervalli
        wrote on last edited by piervalli
        #3

        @vcasado
        I don't have a Mac, but ckecks

        https://github.com/ekke/ekkesBTLEexample

        I used this for understand Bluetooth on Android.

        1 Reply Last reply
        0
        • V vcasado

          Hi,

          I am developing an app that uses Bluetooth for multiplatform(Androdi/iOS) but, now I am messing with the iOS permissions part.

          As I want to use Bluetooth, I have added an Info.plist to the project, added on CMake... it builds and deploys, but, as soon as it starts, the app crashes, reporting in the Application Output:

          22:49:15: Starting remote process.
          QML debugging is enabled. Only use this in a safe environment.
          libc++abi: terminating due to uncaught exception of type NSException
          program received signal 6, thread:1855d5;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0000000000000000;04:479639f701000000;05:a0642a6f01000000;06:6e00000000000000;07:0300000000000000;08:814455f8bd8d2376;09:4140a915bc8d2376;0a:0002000000000000;0b:0b00000000000000;0c:0b00000000000000;0d:00f81f0000000000;0e:fb07000000000000;0f:45d8419e00000000;10:4801000000000000;11:c004fced01000000;12:0000000000000000;13:0600000000000000;14:0301000000000000;15:a005fced01000000;16:40411c8102000000;17:00452c8202000000;18:f04a0c8302000000;19:0100000000000000;1a:0000000000000000;1b:0000000000000000;1c:0000000000000000;1d:10642a6f01000000;1e:187145f701000000;1f:f0632a6f01000000;20:582561d601000000;21:00100040;metype:5;mecount:2;medata:10003;medata:6;memory:0x16f2a6410=50642a6f0100000078f1bc9e01592f6a;memory:0x16f2a6450=90642a6f01000000f85b39f701f07f2a;
          program received signal 6, thread:1855d5;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0000000000000000;04:0000000000000000;05:8096980000000000;06:6e00000000000000;07:0300000000000000;08:814455f8bd8d2376;09:4140a915bc8d2376;0a:e803000000000000;0b:0b00000000000000;0c:0b00000000000000;0d:00f81f0000000000;0e:fb07000000000000;0f:45d8419e00000000;10:4801000000000000;11:c004fced01000000;12:0000000000000000;13:0600000000000000;14:0301000000000000;15:a005fced01000000;16:40411c8102000000;17:00452c8202000000;18:f04a0c8302000000;19:0100000000000000;1a:0000000000000000;1b:0000000000000000;1c:0000000000000000;1d:d0632a6f01000000;1e:187145f701000000;1f:b0632a6f01000000;20:582561d601000000;21:00100040;metype:5;mecount:2;medata:10003;medata:6;memory:0x16f2a63d0=10642a6f01000000047cc29e0163616d;memory:0x16f2a6410=50642a6f0100000084f1bc9e81450028;
          program received signal 5, thread:1855d5;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0100000000000000;04:0000000000000000;05:8096980000000000;06:6e00000000000000;07:0300000000000000;08:e7ffffff00000000;09:c0a9fbed01000000;0a:e803000000000000;0b:0b00000000000000;0c:0b00000000000000;0d:00f81f0000000000;0e:fb07000000000000;0f:45d8419e00000000;10:3000000000000000;11:284ddcf201000000;12:0000000000000000;13:f8632a6f01000000;14:38642a6f01000000;15:a0642a6f01000000;16:40411c8102000000;17:00452c8202000000;18:f04a0c8302000000;19:0100000000000000;1a:0000000000000000;1b:0000000000000000;1c:0000000000000000;1d:10642a6f01000000;1e:247cc29e01000000;1f:e0632a6f01000000;20:247cc29e01000000;21:00100040;metype:6;mecount:2;medata:1;medata:19ec27c24;memory:0x16f2a6410=50642a6f0100000084f1bc9e81450028;memory:0x16f2a6450=90642a6f01000000f85b39f701f07f2a;
          program received signal 5, thread:1855d5;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0100000000000000;04:0000000000000000;05:8096980000000000;06:6e00000000000000;07:0300000000000000;08:e7ffffff00000000;09:c0a9fbed01000000;0a:e803000000000000;0b:0b00000000000000;0c:0b00000000000000;0d:00f81f0000000000;0e:fb07000000000000;0f:45d8419e00000000;10:3000000000000000;11:284ddcf201000000;12:0000000000000000;13:f8632a6f01000000;14:38642a6f01000000;15:a0642a6f01000000;16:40411c8102000000;17:00452c8202000000;18:f04a0c8302000000;19:0100000000000000;1a:0000000000000000;1b:0000000000000000;1c:0000000000000000;1d:10642a6f01000000;1e:247cc29e01000000;1f:e0632a6f01000000;20:247cc29e01000000;21:00100040;metype:6;mecount:2;medata:1;medata:19ec27c24;memory:0x16f2a6410=50642a6f0100000084f1bc9e81450028;memory:0x16f2a6450=90642a6f01000000f85b39f701f07f2a;
          program received signal 5, thread:1855d5;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0100000000000000;04:0000000000000000;05:8096980000000000;06:6e00000000000000;07:0300000000000000;08:e7ffffff00000000;09:c0a9fbed01000000;0a:e803000000000000;0b:0b00000000000000;0c:0b00000000000000;0d:00f81f0000000000;0e:fb07000000000000;0f:45d8419e00000000;10:3000000000000000;11:284ddcf201000000;12:0000000000000000;13:f8632a6f01000000;14:38642a6f01000000;15:a0642a6f01000000;16:40411c8102000000;17:00452c8202000000;18:f04a0c8302000000;19:0100000000000000;1a:0000000000000000;1b:0000000000000000;1c:0000000000000000;1d:10642a6f01000000;1e:247cc29e01000000;1f:e0632a6f01000000;20:247cc29e01000000;21:00100040;metype:6;mecount:2;medata:1;medata:19ec27c24;memory:0x16f2a6410=50642a6f0100000084f1bc9e81450028;memory:0x16f2a6450=90642a6f01000000f85b39f701f07f2a;
          22:49:16: Run ended.
          

          The Info.plist file is:

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
          <plist version="1.0">
          <dict>
                  <key>CFBundleExecutable</key>
                  <string>AAAAAA</string>
                  <key>CFBundleIconFile</key>
                  <string></string>
                  <key>CFBundleIdentifier</key>
                  <string>AAAAAA</string>
                  <key>CFBundlePackageType</key>
                  <string>APPL</string>
                  <key>CFBundleSignature</key>
                  <string>????</string>
                  <key>LSMinimumSystemVersion</key>
                  <string></string>
                  <key>NSPrincipalClass</key>
                  <string>NSApplication</string>
                  <key>NSBluetoothAlwaysUsageDescription</key>
                  <string>Qt BT Example wants to access your Bluetooth adapter</string>
                  <key>NSSupportsAutomaticGraphicsSwitching</key>
                  <true/>
          </dict>
          </plist>
          

          If I just don't include the Info.plist file, the app "works" fine, just when the Bluetooth Scan is launched, it reports the missing permissions error, so the app side and build is fine, the problem is in the plist.

          What am I doing wrong?

          Thank you so much
          Best regards

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @vcasado IIRC, you need, besides the NSBluetoothAlwaysUsageDescription also the NSBluetoothPeripheralUsageDescription

          or I at least have both in my plist files


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          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