-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
6.8.4, 6.9.2, 6.10.0 Beta3
Steps to reproduce
- Load the Clocks demo (ensure that it's a recent version which contains qt_generate_deploy_qml_app_script())
- Build it in Release mode
- Using the console, cd into the build directory and run the following commands:
cmake --install . --prefix testinstall open testinstall/clocks.app
Expected outcomes (Qt 6.7)
The app runs normally.
Actual outcomes (Qt 6.8)+
The app crashes with EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Workarounds
The auto-generated macdeployqt command is
'~/Qt/6.8.4/macos/bin/macdeployqt' 'clocks.app' '-appstore-compliant' '-always-overwrite' '-executable=clocks.app/Contents/PlugIns/libqtquick2plugin.dylib' '-executable=clocks.app/Contents/PlugIns/libqmlplugin.dylib' '-executable=clocks.app/Contents/PlugIns/libmodelsplugin.dylib' '-executable=clocks.app/Contents/PlugIns/libworkerscriptplugin.dylib'
- One workaround is to manually copy+paste the console command above
, but remove the "-appstore-compliant" option. - Another workaround is to add the "-codesign=..." option to DEPLOY_TOOL_OPTIONS (see the example at https://doc.qt.io/qt-6/qt-generate-deploy-app-script.html#example)
(EDIT: Copying the command as-is is sufficient to make it work, but this is probably just a lucky coincidence. Adding "-codesign" is the correct workaround)
- duplicates
-
QTBUG-138019 [Reg 6.7.3 -> 6.8.4][macOS][macos] Calqlatr: installed example with qml modules doesn't launch due to code signing issues and macdeployqt modifications
-
- Reported
-