-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
.netcore single file executable codesign fail on macOS #2811
Comments
Looks like you don't have compatible version of xcode ... @wfurt any idea? |
I have no idea either. cc: @nguerrera @livarcocc any idea? |
The single-file bundler adds additional contents (the apps's dependencies) at the end of the host-binary. Looks like this is triggering an internal validation (__LINKEDIT doesn't cover EOF) when running codesign. Related issue: https://github.com/dotnet/core-setup/issues/6518 |
It fails on windows too. I get an error saying it's looking for the main app's dll. Same setup though with unsigned files works fine. |
@MoonStorm the fix for Windows version is in this PR: |
Thanks, hopefully that will make it in the next preview (7)? |
The Windows fix will be in Preview 7. I opened https://github.com/dotnet/core-setup/issues/7065 to track the MAC signing issue (better tracked in the core-setup repo). Hence closing this issue. |
Issue Title
netcore single file executable codesign fail on macOS
General
You will get error message: main executable failed strict validation
If you add --no-strict option in codesign, you will get more detailed error messages:
The text was updated successfully, but these errors were encountered: