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

/Users/qt/work/qt/qtbase/src/plugins/platforms/ios/qiostheme.mm:73:72: error: 'tintColor' is only available on iOS 15.0 or newer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • 6.6.0 Beta4
    • 6.7.0 FF
    • GUI: Painting
    • None
    • iOS/tvOS/watchOS
    • 67739448f (6.6)

    Description

      objc-msgsend-selector-stubs -std=c++17 -MD -MT src/plugins/platforms/ios/CMakeFiles/QIOSIntegrationPlugin.dir/Release/qiostheme.mm.o -MF src/plugins/platforms/ios/CMakeFiles/QIOSIntegrationPlugin.dir/Release/qiostheme.mm.o.d -o src/plugins/platforms/ios/CMakeFiles/QIOSIntegrationPlugin.dir/Release/qiostheme.mm.o -c /Users/qt/work/qt/qtbase/src/plugins/platforms/ios/qiostheme.mm
      /Users/qt/work/qt/qtbase/src/plugins/platforms/ios/qiostheme.mm:73:72: error: 'tintColor' is only available on iOS 15.0 or newer [-Werror,-Wunguarded-availability-new]
      s_systemPalette.setBrush(QPalette::Accent, qt_mac_toQBrush(UIColor.tintColor.CGColor));
                                                                            ^~~~~~~~~
      /Applications/Xcode14.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:145:49: note: 'tintColor' has been marked as being introduced in iOS 15.0 here, but the deployment target is iOS 14.0.0
      @property (class, nonatomic, readonly) UIColor *tintColor               API_AVAILABLE(ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos) NS_SWIFT_NAME(tintColor);
                                                       ^
      /Users/qt/work/qt/qtbase/src/plugins/platforms/ios/qiostheme.mm:73:72: note: enclose 'tintColor' in an @available check to silence this warning
      s_systemPalette.setBrush(QPalette::Accent, qt_mac_toQBrush(UIColor.tintColor.CGColor));
                                                                             ^~~~~~~~~
      1 error generated.
      

      Build log: https://testresults.qt.io/logs/qt/qtbase/74e1e79d51e20568be1933df4a69f153ebeb4f63/MacOSMacOS_13x86_64IOSIOS_ANYarm64Clangqtci-macos-13-x86_64-103-edc2f0DebugAndRelease_DisableTests_Sccache_UseConfigure_WarningsAreErrors/36445a0b103361845e07d703ba1eebe3056811d4/build_1699554923/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtqa/tasks/1699554240

      Tested changes (refs/builds/qtci/dev/1694081986):
      https://codereview.qt-project.org/c/qt/qtqa/+/502398/2 Update dependencies on 'dev' in qt/qtqa

      Attachments

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

        Activity

          People

            dorisverria Doris Verria
            janihe Jani Heikkinen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes