Solved Codesign and deploy on osx
-
I use
macdeployqt my.app
and my app is work.
but now I need codesign my app,
so I use
macdeployqt my.app -codesign=developerID
after codesign, use
codesign --display --verbose=4
to check, it's right.
but my app can not open.Qt version 5.5.1
MacOS 10.12.6
XCode version 9.2please help me fix it.
-
Hi and welcome to devnet,
The first thing you should do is to update Qt to a recent version. The current LTS is Qt 5.12.5 and the release is 5.13.1.
Also, what exact error do you get ?
What version of macOS are you targeting ? -
Thank you for your reply.
Actually I did not get any error by using macdeployqt my.app -codesign=developerID, this is my command line screenshot.
and i try to open the app, I will got this
These files are in the app.
-
Click on the report button, it will show you the stack trace.
-
oh! sorry !
This is my stack trace.
-
From the crash it seems that the signature is not valid. Are you sure you use the right one ?
-
@SGaist said in Codesign and deploy on osx:
From the crash it seems that the signature is not valid. Are you sure you use the right one ?
After I used "macdeployqt my.app -codesign=developerID", I did not get any error.
And I try to check By "codesign --display --verbose=4 my.app".
The result like this picture.
Forgive me, I am not sure it is safe if I show the developerID so I cover it.
in this picture message I think is right? -
Do you have several ID's configured ?
-
Oh! My Keychain has multiple ID, I try to use another mac, it is only have one ID, it is wrok!
I think the problem is like you said, several ID's configured.
thanks a lot for your help. -
@SGaist
sorry, how to change state to solved for this topic? -
You can use the "Topic Tools" button for that.
In case, one answer is the exact answer you need, you can use the vertical three dots menu on the right of the post to mark it as such in place of using the Topic Tools button.
-
@SGaist
Thanks.