Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-3084

binarycreator --sign: add "--option runtime", avoid deprecated "--deep"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.6.0
    • Tools

    Description

      I've set up an installer for macOS to be distributed outside the App Store and submitted for notarization at Apple. All binaries are signed, so is the installer itself. The last error I am stuck with is the requirement of hardened runtime for the actual installer binary.

      From "notarytool log":

      "issues": [
          {
            "severity": "error",
            "code": null,
            "path": "xxx.dmg/xxx.app/Contents/MacOS/xxx",
            "message": "The executable does not have the hardened runtime enabled.",
            "docUrl": "https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087724",
            "architecture": "x86_64"
          }
        ]

      In src/libs/ifwtools/binarycreator.cpp, the options --force }}, {{--deep }} and {{--sign <identity> are passed to codesign. The hardened runtime would require --option runtime }} in addition. Also, the Apple documentation advises the usage of {{--timestamp, but I can not find that reference right now.

      Finally, the --deep option is "(DEPRECATED for signing as of macOS 13.0)" as per man-page.

      Edits: trying to avoid strikethrough and getting the formatting right. Close enough now.

      Attachments

        For Gerrit Dashboard: QTIFW-3084
        # Subject Branch Project Status CR V

        Activity

          People

            installerteam Installer Team
            dfranke Daniel Franke
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change