Skip to content

Signature fail on Mac if entitlements file not specified #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 of 5 tasks
amariottini opened this issue Mar 28, 2023 · 4 comments
Closed
2 of 5 tasks

Signature fail on Mac if entitlements file not specified #313

amariottini opened this issue Mar 28, 2023 · 4 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists fixed Issue fixed and release pending

Comments

@amariottini
Copy link

amariottini commented Mar 28, 2023

I'm submitting a…

  • bug report
  • feature request
  • other

Short description of the issue/suggestion:
Signature fail on Mac if entitlements is not specified

Steps to reproduce the issue/enhancement:
Enable signature like this:

macConfig {
        codesignApp = true
        developerId = "XXXXXXXXXX"
        hardenedCodesign = true
        generatePkg = false
        volumeName = "MyVolumeName"
    }

What is the expected behavior?
Signature applied

What is the current behavior?
Error

Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?

Entitlements file not specified. Using defaults!
Executing command: /bin/sh -c cd '/Users/andrea/Projects/projectname/.' && 'find' /Users/andrea/Projects/projectname/build/projectname/projectname.app -depth -type f -exec codesign -f -o runtime -s XXXXXXXXXX --entitlements {} \;
        Usage: codesign -s identity [-fv*] [-o flags] [-r reqs] [-i ident] path ... # sign
               codesign -v [-v*] [-R=<req string>|-R <req file path>] path|[+]pid ... # verify
               codesign -d [options] path ... # display contents
               codesign -h pid ... # display hosting paths
        Usage: codesign -s identity [-fv*] [-o flags] [-r reqs] [-i ident] path ... # sign
               codesign -v [-v*] [-R=<req string>|-R <req file path>] path|[+]pid ... # verify
               codesign -d [options] path ... # display contents
               codesign -h pid ... # display hosting paths
...............

Please tell us about your environment:
IntelliJ 2022.3.3
Gradle 7.6

  • JavaPackager version: 1.7.0
  • OS version: MacOS 10.15.7
  • JDK version: 11.0.10
  • Build tool:
    • Maven
    • Gradle

Other information (e.g. related issues, suggestions how to fix, links for us to have context)

@fvarrui
Copy link
Collaborator

fvarrui commented Mar 28, 2023

Hi @amariottini!
This issue seems to be duplicated.
Have a look to #306
Thanks!

@fvarrui fvarrui added bug Something isn't working duplicate This issue or pull request already exists labels Mar 28, 2023
@fvarrui
Copy link
Collaborator

fvarrui commented Mar 28, 2023

Hi @amariottini! This issue seems to be duplicated. Have a look to #306 Thanks!

If so, we can close and mark this issue as fixed.

@amariottini
Copy link
Author

Yes is the same problem, sorry I missed the issue.

@fvarrui fvarrui added the fixed Issue fixed and release pending label Mar 28, 2023
@fvarrui
Copy link
Collaborator

fvarrui commented May 4, 2023

JP 1.7.1 released to Maven Central

@fvarrui fvarrui closed this as completed May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists fixed Issue fixed and release pending
Projects
None yet
Development

No branches or pull requests

2 participants