Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8276837

[macos]: Error when signing the additional launcher

XMLWordPrintable

    • b27
    • generic
    • os_x_10.15

        ADDITIONAL SYSTEM INFORMATION :
        OS X 10.15

        A DESCRIPTION OF THE PROBLEM :
        The second launcher cannot be signed because it is already signed. It's like being signed twice.
        The same build works before version 17.0.0

        REGRESSION : Last worked in version 16

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Build an application with a second launcher



        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        jpackage should exit with 0
        ACTUAL -
        java.io.IOException: Command [/usr/bin/codesign, --timestamp, --options, runtime, -s, ***, --prefix, org.weasis.launcher., -vvvv, --keychain, /Users/runner/Library/Keychains/signing_temp.keychain-db, --entitlements, /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/jdk.jpackage16166130837195785450/config/Weasis.entitlements, weasis-distributions/target/native-dist/Weasis.app/Contents/MacOS/Dicomizer] exited with 1 code
        Error: Process completed with exit code 1.

        ---------- BEGIN SOURCE ----------
        Unfortunately, it is not possible to provide a simple test that requires a real certificate and user information. Here is an example of a command:

        jpackage --type app-image --add-launcher "Dicomizer=second-launcher.properties" --mac-package-identifier" "org.launcher" "--mac-signing-keychain" "$HOME/Library/Keychains/signing_temp.keychain-db" "--mac-sign ...
        ---------- END SOURCE ----------

        FREQUENCY : always


              herrick Andy Herrick (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: