Hi Hamish,
 
yes, in the meantime I figured that I signed the app before deployment and this leads to the crash because the other components must be signed as well.
 
In that regard the next question comes up:
 
Is it sufficient if I sign the DMG file which results from the macdeployqt call or do I have to run macdeployqt without dmg-creation, then sign the app and then create a DMG out of it ?
 
Thanks,
best
 
Alex
 
--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797
 
 
Gesendet: Donnerstag, 09. April 2020 um 02:40 Uhr
Von: "Hamish Moffatt" <ham...@risingsoftware.com>
An: interest@qt-project.org
Betreff: Re: [Interest] OSX codesign question
On 9/4/20 1:15 am, "Alexander Carôt" wrote:
So - I received the new certificate, installed it on my keychain tool and this is what happened again:
 
soulalex@alexandarotsMBP SJC % codesign --deep --force --verify --verbose --timestamp --options runtime --sign "Developer ID Application: Alexander Carot (92C65YCLK8)" ./soundjack.app
./soundjack.app: signed app bundle with Mach-O thin (x86_64) [com.yourcompany.soundjack]

soulalex@alexandarotsMBP SJC % codesign --verify --deep --strict --verbose=2 ./soundjack.app
./soundjack.app: valid on disk
./soundjack.app: satisfies its Designated Requirement

soulalex@alexandarotsMBP SJC % ./soundjack.app/Contents/MacOS/soundjack
dyld: Library not loaded: @rpath/QtMultimediaWidgets.framework/Versions/5/QtMultimediaWidgets
  Referenced from: /Users/soulalex/Desktop/wip/XP-shared/Soundjack/SJC/./soundjack.app/Contents/MacOS/soundjack
  Reason: no suitable image found.  Did find:
    /Users/soulalex/Qt-5.14.2/5.14.2/clang_64/lib/QtMultimediaWidgets.framework/Versions/5/QtMultimediaWidgets: code signature in (/Users/soulalex/Qt-5.14.2/5.14.2/clang_64/lib/QtMultimediaWidgets.framework/Versions/5/QtMultimediaWidgets) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
zsh: abort      ./soundjack.app/Contents/MacOS/soundjack
soulalex@alexandarotsMBP SJC %
 
Any idea left ?

 

Is the QtMultimediaWidgets.framework included in your bundle? Are you using macdeployqt?

It looks like a signing error because it is trying your (unsigned) Qt development install framework instead, while maybe the problem is that the framework is just missing from your bundle and therefore didn't get signed.

 

 

Hamish

_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to