Skip to content
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

Core signing of .net core app giving error on MAC with produce single file enabled #4486

Closed
jacobkochekkan opened this issue Mar 31, 2020 · 2 comments

Comments

@jacobkochekkan
Copy link

jacobkochekkan commented Mar 31, 2020

I created a sample.net core app that I would like to get notarized on MAC. A pre-requsite for notarization is code signing. When I try to code sign the app, i get the below errors:

  1. Your Mach-O executable does not conform to modern Mach-O layout rules.
  2. You may be using a third party development product that hasn't been brought up to date, or post-processed your file in unsupported ways.

I provided the below publish options :

  • deployment mode = Self-contained
  • Targete Runtime = osx-x64
  • Enabled produce single file

I also added UseAppHost as true in the csproj file.

Code signing is successful when setting "produce single file" to false.

I would like to know why enabling produce single file fails code signing

@jacobkochekkan jacobkochekkan changed the title Core signing of .net core app giving error on MAC Core signing of .net core app giving error on MAC with produce single file enabled Mar 31, 2020
@antoineazar
Copy link

I have the same issue

@swaroop-sridhar
Copy link

Dup of dotnet/runtime#3671

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants