Main Thread Checker: UI API called on a background thread: -[NSApplication effectiveAppearance]
PID: 82978, TID: 243374944, Thread name: QQmlThread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   QtCore                              0x0000000105532e60 _Z30qt_mac_applicationIsInDarkModev + 48
5   libqcocoa.dylib                     0x0000000103f366c8 _ZN20QCocoaSystemTrayIcon17statusItemClickedEv + 12932
6   QtQuickControls2                    0x00000001014bee88 _ZN18QQuickStylePrivate17isDarkSystemThemeEv + 96
7   libqtquickcontrols2fusionstyleplugi 0x0000000111caca5c libqtquickcontrols2fusionstyleplugi + 35420
8   QtQuickControls2                    0x00000001014c1240 _ZN17QQuickStylePlugin13registerTypesEPKc + 1576
9   QtQml                               0x0000000103b440d0 _ZN12QQmlMetaType19registerPluginTypesEP7QObjectRK7QStringS4_S4_13QTypeRevisionP5QListI9QQmlErrorE + 1688
10  QtQml                               0x0000000103b6edd4 _ZN12QQmlPlatform11qt_metacallEN11QMetaObject4CallEiPPv + 4352
11  QtQml                               0x0000000103b70658 _ZN12QQmlPlatform11qt_metacallEN11QMetaObject4CallEiPPv + 10628
12  QtQml                               0x0000000103b27924 _ZNK11QQmlImports11resolveTypeEP19QQmlImportNamespaceRK16QHashedStringRefP8QQmlTypeP13QTypeRevisionNS5_16RegistrationTypeE + 8960
13  QtQml                               0x0000000103b29670 _ZNK11QQmlImports11resolveTypeEP19QQmlImportNamespaceRK16QHashedStringRefP8QQmlTypeP13QTypeRevisionNS5_16RegistrationTypeE + 16460
14  QtQml                               0x0000000103b2b5bc _ZN11QQmlImports16addLibraryImportEP18QQmlImportDatabaseRK7QStringS4_13QTypeRevisionS4_S4_jP5QListI9QQmlErrorE + 972
15  QtQml                               0x0000000103bc5138 _ZNK14QQmlTypeLoader14isScriptLoadedERK4QUrl + 6900
16  QtQml                               0x0000000103bbfb80 _ZN14QQmlTypeLoader4Blob9addImportENSt3__110shared_ptrINS0_13PendingImportEEEjP5QListI9QQmlErrorE + 1900
17  QtQml                               0x0000000103bbeb3c _ZN14QQmlTypeLoader4Blob22loadImportDependenciesENSt3__110shared_ptrINS0_13PendingImportEEERK7QStringP5QListI9QQmlErrorE + 624
18  QtQml                               0x0000000103bc5194 _ZNK14QQmlTypeLoader14isScriptLoadedERK4QUrl + 6992
19  QtQml                               0x0000000103bbfb80 _ZN14QQmlTypeLoader4Blob9addImportENSt3__110shared_ptrINS0_13PendingImportEEEjP5QListI9QQmlErrorE + 1900
20  QtQml                               0x0000000103bbf3c4 _ZN14QQmlTypeLoader4Blob9addImportEPKN3QV412CompiledData6ImportEjP5QListI9QQmlErrorE + 104
21  QtQml                               0x0000000103bb0e44 _ZNK8QQmlType21pendingResolutionNameEv + 100256
22  QtQml                               0x0000000103bbdde0 _ZN14QQmlTypeLoader7setDataEP12QQmlDataBlobRKNS0_14SourceCodeDataE + 88
23  QtQml                               0x0000000103bbd77c _ZN14QQmlTypeLoader7setDataEP12QQmlDataBlobRK7QString + 112
24  QtQml                               0x0000000103bbd5b0 _ZN14QQmlTypeLoader10loadThreadEP12QQmlDataBlob + 344
25  QtQml                               0x0000000103bcb064 _ZNK14QQmlTypeLoader14isScriptLoadedERK4QUrl + 31264
26  QtQml                               0x0000000103ae408c _ZNK16QHashedStringRef8toStringEv + 2964
27  QtQml                               0x0000000103ae3fa4 _ZNK16QHashedStringRef8toStringEv + 2732
28  QtWidgets                           0x00000001030dd2b8 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272
29  QtWidgets                           0x00000001030de41c _ZN12QApplication6notifyEP7QObjectP6QEvent + 532
30  QtCore                              0x00000001053e53c0 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292
31  QtCore                              0x00000001053e6958 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData + 1432
32  QtCore                              0x0000000105543ad4 _ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 84
33  QtCore                              0x00000001053ee79c _ZN10QEvent

上面的错误是我的应用程序从qt5升级到qt6框架后，xcode编译运行的报错；帮我分析原因，如何解决这个问题。