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

Qt Assistant shipped with Qt application cannot be run under macOS Mojave 10.14.5+ or Catalina

    XMLWordPrintable

Details

    • macOS

    Description

      Using Qt that is built from source code.
      When Qt Assistant is shipped as a part of Qt application, launching it from within the app's Contents/MacOS directory fails.

      The binary runs fine on macOS 10.13.6

      The error message output when running the binary from console is:

      $ ./Assistant
      qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in
      "" even though it was found.
      This application failed to start because no Qt platform plugin could be
      initialized. Reinstalling the application may fix this problem.
      
      Available platform plugins are: cocoa.
      
      Abort trap: 6
      $
      

      "QT_DEBUG_PLUGINS=1" outputs as follows

      QFactoryLoader::QFactoryLoader() checking directory path
      "/Applications/Explorer.app/Contents/PlugIns/platforms" ...
      QFactoryLoader::QFactoryLoader() looking at "/Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib"
      Found metadata in lib /Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib, metadata= {
      "IID": "org.qt-
      project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
      "MetaData": {
      "Keys": [
      "cocoa"
      ]
      },
      "archreq": 0,
      "className": "QCocoaIntegrationPlugin",
      "debug": false,
      "version": 330752
      }
      
      Got keys from plugin meta data ("cocoa")
      QFactoryLoader::QFactoryLoader() checking directory path
      "/Applications/Explorer.app/Contents/MacOS/platforms"
      ...
      Cannot load library /Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib:
      (dlopen(/Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib, 133): no suitable
      image found. Did find:
      /Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib: code signature in
      (/Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib) not valid for use in
      process using Library Validation: mapped file has no cdhash, completely
      unsigned? Code has to be at least ad-hoc signed.) QLibraryPrivate::loadPlugin
      failed on "/Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib" : "Cannot
      load library /Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib:
      (dlopen(/Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib, 133): no suitable image found. Did find:\n\t/Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib: code signature in
      (/Applications/Explorer.app/Contents/PlugIns/platforms/libqcocoa.dylib) not valid for use in
      process using Library Validation: mapped file has no cdhash, completely
      unsigned? Code has to be at least ad-hoc signed.)"
      qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in
      "" even though it was found.
      This application failed to start because no Qt platform plugin could be
      initialized. Reinstalling the application may fix this problem.
      
      Available platform plugins are: cocoa.
      
      

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes