Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48518

Build broken with iOS9/Xcode7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0
    • 5.5.0
    • None
    • OSX 10.10 with Xcode7 and iOS 9 SDK.
    • 371818e71839280abafae858e9bb53c4ee6b9e5e 7dd6d0adae31ef47b9ecd2658430562b097cd50b

    Description

      Since we updated Xcode to 7.0.1 with iPhoneOS9.0.sdk we cannot build Qt anymore.

      Looks like Qt uses a removed API that was deprecated in iOS 7.0.

      https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBPeripheral_Class/

      osx/osxbtcentralmanager.mm:241:34: error: call to implicitly-deleted copy constructor of 'ObjCScopedPointer<NSMutableArray>'
          [manager retrievePeripherals:uuids];
                                       ^~~~~
      osx/osxbtutility_p.h:62:27: note: copy constructor of 'ObjCScopedPointer<NSMutableArray>' is implicitly deleted because base class 'QScopedPointer<NSObject, OSXBluetooth::NSObjectDeleter>' has a deleted copy constructor
      class ObjCScopedPointer : public QScopedPointer<NSObject, NSObjectDeleter>
                                ^
      /private/tmp/a/b/qt-prefix/src/qt/qtbase/include/QtCore/../../src/corelib/tools/qscopedpointer.h:170:20: note: 'QScopedPointer' has been explicitly marked deleted here
          Q_DISABLE_COPY(QScopedPointer)
                         ^
      /private/tmp/a/b/qt-prefix/src/qt/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1042:5: note: expanded from macro 'Q_DISABLE_COPY'
          Class(const Class &) Q_DECL_EQ_DELETE;\
          ^
      osx/osxbtcentralmanager.mm:275:23: error: property 'isConnected' not found on object of type 'CBPeripheral *'
          return peripheral.isConnected;
                            ^
      /private/tmp/a/b/qt-prefix/src/qt/qtbase/bin/moc -DDARWIN_NO_CARBON -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BUILD_BLUETOOTH_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_IOS_BLUETOOTH -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -D__APPLE__ -D__GNUC__=4 -D__APPLE_CC__ -I/tmp/a/b/qt-prefix/src/qt/qtbase/mkspecs/macx-ios-clang -I/private/tmp/a/b/qt-prefix/src/qt/qtconnectivity/src/bluetooth -I/private/tmp/a/b/qt-prefix/src/qt/qtbase/mkspecs/macx-ios-clang/ios -I/tmp/a/b/dist/include -I/private/tmp/a/b/qt-prefix/src/qt/qtconnectivity/include -I/private/tmp/a/b/qt-prefix/src/qt/qtconnectivity/include/QtBluetooth -I/private/tmp/a/b/qt-prefix/src/qt/qtconnectivity/include/QtBluetooth/5.5.0 -I/private/tmp/a/b/qt-prefix/src/qt/qtconnectivity/include/QtBluetooth/5.5.0/QtBluetooth -I/private/tmp/a/b/qt-prefix/src/qt/qtbase/include -I/private/tmp/a/b/qt-prefix/src/qt/qtbase/include/QtCore -I/private/tmp/a/b/qt-prefix/src/qt/qtbase/include/QtConcurrent -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/c++/4.2.1 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/c++/4.2.1/backward -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.0.0/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include qbluetoothlocaldevice.h -o .moc/moc_qbluetoothlocaldevice.cpp
      osx/osxbtledeviceinquiry.mm:313:21: error: property 'UUID' not found on object of type 'CBPeripheral *'
          if (!peripheral.UUID) {
                          ^
      osx/osxbtledeviceinquiry.mm:318:59: error: property 'UUID' not found on object of type 'CBPeripheral *'
          StringStrongReference key(uuid_as_nsstring(peripheral.UUID));
                                                                ^
      osx/osxbtledeviceinquiry.mm:321:74: error: property 'UUID' not found on object of type 'CBPeripheral *'
              const QBluetoothUuid deviceUuid(OSXBluetooth::qt_uuid(peripheral.UUID));
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            misery André Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes