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

[Reg 6.7.3 -> 6.8.4][macOS] qt_generate_deploy_qml_app_script() results in bad signatures

XMLWordPrintable

    • macOS

      Steps to reproduce

      1. Load the Clocks demo (ensure that it's a recent version which contains qt_generate_deploy_qml_app_script())
      2. Build it in Release mode
      3. Using the console, cd into the build directory and run the following commands:
        cmake --install . --prefix testinstall
        open testinstall/clocks.app
        

       

      Expected outcomes (Qt 6.7)

      The app runs normally.

       

      Actual outcomes (Qt 6.8)+

      The app crashes with EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))

       

      Workarounds

      The auto-generated macdeployqt command is

      '~/Qt/6.8.4/macos/bin/macdeployqt' 'clocks.app' '-appstore-compliant' '-always-overwrite' '-executable=clocks.app/Contents/PlugIns/libqtquick2plugin.dylib' '-executable=clocks.app/Contents/PlugIns/libqmlplugin.dylib' '-executable=clocks.app/Contents/PlugIns/libmodelsplugin.dylib' '-executable=clocks.app/Contents/PlugIns/libworkerscriptplugin.dylib'
      

      (EDIT: Copying the command as-is is sufficient to make it work, but this is probably just a lucky coincidence. Adding "-codesign" is the correct workaround)

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

            qtbuildsystem Qt Build System Team
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes