[Interest] 5.5.1 OSX BTLE compile error - UUID is deprecated

Jason H jhihn at gmx.com
Fri Jan 29 20:49:49 CET 2016


/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm:313:21: error: /Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm:313:21: error: property 'UUID' not found on object of type 'CBPeripheral *'
property 'UUID' not found on object of type 'CBPeripheral *'
    if (!peripheral.UUID) {
                    ^
    if (!peripheral.UUID) {
                    ^
/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm:318:59: error: property 'UUID' not found on object of type 'CBPeripheral *'
/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm:318:59: error: property 'UUID' not found on object of type 'CBPeripheral *'
    StringStrongReference key(uuid_as_nsstring(peripheral.UUID));
                                                          ^
    StringStrongReference key(uuid_as_nsstring(peripheral.UUID));
                                                          ^
/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm/Users/jhihn/qt5/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm::321321::7474::  errorerror: : property 'UUID' not found on object of type 'CBPeripheral *'property 'UUID' not found on object of type 'CBPeripheral *'

        const QBluetoothUuid deviceUuid(OSXBluetooth::qt_uuid(peripheral.UUID));        const QBluetoothUuid deviceUuid(OSXBluetooth::qt_uuid(peripheral.UUID));


UUID is Deprecated:
https://developer.apple.com/library/prerelease/ios/documentation/CoreBluetooth/Reference/CBPeripheral_Class/index.html#//apple_ref/occ/cl/CBPeripheral
https://developer.apple.com/library/prerelease/mac/documentation/CoreBluetooth/Reference/CBPeripheral_Class/index.html#//apple_ref/occ/cl/CBPeripheral

I don't know if this is fixed in 5.6?



More information about the Interest mailing list