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

error: receiver 'UITraitCollection' is a forward class and corresponding @interface may not exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P0: Blocker P0: Blocker
    • None
    • 6.11.0 FF
    • None
    • iOS/tvOS/watchOS
    • 4ab1e09c0e86f02b8e9a6aaffbad732620bbb7ea

      /Users/qt/work/qt/qtdeclarative/src/quickcontrols/ios/qquickiostheme.mm:40:43: error: receiver 'UITraitCollection' is a forward class and corresponding @interface may not exist [-Werror,-Wreceiver-forward-class]
          UITraitCollection *traitCollection = [UITraitCollection traitCollectionWithUserInterfaceStyle:style];
                                                ^~~~~~~~~~~~~~~~~
      /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:21:8: note: forward declaration of class here
      @class UITraitCollection;
             ^
      /Users/qt/work/qt/qtdeclarative/src/quickcontrols/ios/qquickiostheme.mm:40:61: error: class method '+traitCollectionWithUserInterfaceStyle:' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]
          UITraitCollection *traitCollection = [UITraitCollection traitCollectionWithUserInterfaceStyle:style];
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      2 errors generated.
      
      

      Build log: https://testresults.qt.io/logs/qt/qtdeclarative/a44846dd0d4ed08f13a9842a89d7df919e6f4a32/MacOSMacOS_14arm64IOSIOS_ANYarm64Clangqtci-macos-14-arm-106-8bd3d6DebugAndRelease_DisableTests_GenerateSBOM_Packaging_Sccache_UseConfigure_VerifySBOM_WarningsAreErrors/265acfa9bbcf5315f50aca6868fa37db88b5b3d3/build_1755845296/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtdeclarative/tasks/1755845264

      Tested changes (refs/builds/qtci/dev/1755842692):
      https://codereview.qt-project.org/c/qt/qtdeclarative/+/665708/15 QQ4A: Allow QML functions to be called from Java
      https://codereview.qt-project.org/c/qt/qtdeclarative/+/670180/2 Update dependencies on 'dev' in qt/qtdeclarative

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

            tpochep Timur Pocheptsov
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes