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
MacOS Code Signing #179
Comments
The documentation from Apple:
Is there a way to provide this build settings when creating the cmd binary? |
I think I found how to do it, the codesign utility lets you add the option:
|
I'm sorry, but I cannot help you on this one. Please report your finding here, as it might help others. |
This sounds like something we may want to do for the release build of an app? Or should it also be done for debug builds? I have very little experience with MacOS, help is welcome and much appreciated @alexelisenko |
I have been able to successfully sign, notarize and distribute the app with a DMG installer. My findings: Step 1: build with either hover or manual
Step 2: create .app package:
Step 3: move the build output to the
|
It's is more related to packaging ( |
Indeed this will be useful for packaging. Thanks @alexelisenko ! |
@Drakirus @GeertJohan I have found that using the Also, is there any updates on how MacOS 10.15+ will be handled? It is my understanding that OpenGL is no longer supported. |
Hopefully you can get the |
@Drakirus I have found the issue with enabling hardened runtime. You need to also add entitlements for allowing JIT, since AOT with Dart in the flutterembedder is not supported yet, which is why it crashes. I will post the exact entitlement file and codesign command that is working for me. |
Moved to #207. |
@alexelisenko what is related to code signing can be reported in this issue. |
Hi, have you figured out the entitlement file that is working for you? I met the same issue:( |
@wud147 Yes, You need to codesign with the entitlement file:
The entitlement file:
|
Once codesigned and notarized, did you notice any issue launching the app? |
Hello,
I am trying to get my app code signed, but Apple now requires all apps to be notarized. I am getting the following error back from Apple:
The executable does not have the hardened runtime enabled.
This is referring to the main executable created by hover build. I have tried adding the hardening to the Xcode project, but Im assuming hover build does not use the xcode project to build it.. How do I add the hardened runtime capability when using hover?
The text was updated successfully, but these errors were encountered: