How to 'notarize' Qt application on MacOS?
I am trying to get my Mac application 'notarized' on Mac. I followed the steps recommended on various sites:
But got the message:
"The executable does not have the hardened runtime enabled"
I can only find instructions on how to enable hardened runtime using XCode. Any ideas on how to use it when building with QtCreator? Googling has not turned up much.
AFAIK, it's not yet supported and would likely rather be part of
macdeployqt, I'd recommend checking the bug report system to see if there's anything related. If not, you should consider opening a feature request providing your findings.
It might just be a case of adding:
To my codesign arguments. In which case it might be a bit out of scope for macdeployqt.
Also notarization is (weirdly) an asynchronous multi-step process.
if I get it working I will write it up and post a link here.
It's still something for
macdeployqtas you can do the code signing through it.
I didn't know that macdeployqt supported codesign. You learn something new every day!
There is a request to support hardened runtimes in Qt:
You should add the links you provided here to the report, they have some useful information.
I did get it working. Adding "-o runtime" to codesign was the key. I will write it up into a blog post and link here and in the bug report.
I wrote it up the whole process here: