According to this Qt blog post:
The -deep option signs the app bundle recursively, including contained frameworks. While convenient to use, –deep is documented for “emergency repairs and temporary adjustments only“. As of Qt 5.4 macdeployqt has a -codesign option that recursively signs the app bundle without using –deep.
But on the Qt documentation page Qt for OS X - Deployment, the list of supported options for macdeployqt
(at the bottom of the page) does not include -codesign
.
So, does macdeployqt
have a -codesign
option for Qt 5.4.1? If so, how do I use it?
As the blog post references this code: -
It does appear that it does support the -codesign option for Qt5.4 and looks like they've not updated the docs accordingly.
To see the options for the tool, type the following in a Terminal window: -
You shoud see that one of the options listed is
Assuming you have an appropriate certificate in your keychain and are using Qt 5.4.x, then you should be able to codesign with the -codesign option
Where MyCertificate is the name of the signing certificate in your keychain