Ivan Zemtsov
Ivan Zemtsov

Reputation: 11

crash on the mac with frameworks

I am an application developer and I am facing such a problem. We get crashes on sentry on different versions of mac (10.16.0(21E258), 10.16.0(20D64), 10.14.6(18G103)...) and in each such crash comes the following:

dyld: launch, loading dependent libraries,

Library not loaded: @rpath/QtCore.framework/Versions/5/QtCore

Referenced from:

/Applications/Contents/Frameworks/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess Reason: no suitable image found.

Did find: /Applications/Contents/Frameworks/QtWebEngineCore.framework/Versions/5/Helpers/QtWebEngineProcess.app/Contents/MacOS/../../../../../../../QtCore.framework/ Versions/5/QtCore: code signature in (/Applications/Contents/Frameworks/QtWebEngineCore.framework/Versions/5/Helpers/QtWebEngineProcess.app/Contents/MacOS/../../../../../ ../../QtCore.framework/Versions/5/QtCore) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)

We also tried to reproduce this issue on our Macs and VMs with the versions listed, but found nothing. Also, judging by the number of reports, this problem is not constant and does not occur for everyone. Tell me, do you have any clues about this? (Of course, our application has certificates signed).

Thanks for taking the time to help me.

Upvotes: 0

Views: 382

Answers (1)

E4z9
E4z9

Reputation: 1767

not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary

You need to sign all frameworks and also binaries with the same ID and Team. It looks like QtWebEngineProcess is signed, but the QtCore that you ship with it is not.

See also https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html

Upvotes: 0

Related Questions