Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
6.3.0
-
None
Description
Since Qt 6.3, I've noticed an issue when I use `macdeployqt` to deploy a Universal app on a M1 Mac (iirc, it worked with Qt 6.2 on this M1 Mac).
The deployment always fail with an error from `install_name_tool`, with message like this:
ERROR: "error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: \"-delete_rpath /Users/{USER_NAME}/Qt/6.3.1/macos/lib\" specified more than once\nUsage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool [-change old new] ... [-rpath old new] ... [-add_rpath new] ... [-delete_rpath old] ... [-id name] input\n" ERROR: ""
After the error, `macdeployqt` will keep running, but the deployed app bundle will contain unusual data (didn't figure out exactly what extra data was included, but the size of the bundle was definitely larger than normal).
Eventually, the codesign will fail with error:
ERROR: Codesign signing error: ERROR: "MyApp.app: replacing existing signature\nMyApp.app/Contents/MacOS/MyApp: code object is not signed at all\nIn subcomponent: MyApp.app/Contents/Frameworks/QtQuickControls2.framework\n" ERROR: codesign verification error: ERROR: "MyApp.app: code object is not signed at all\n"
I suspect this is caused by somewhere inside `macdeployqt` where it was calling `install_name_tool`, and perhaps the arguments passed to the tool were with an incorrect format.
Environment:
- macOS 12.4
- Xcode 13.4.1
- Qt 6.3.1
Oddly, I also have an Intel Mac with very similar environment, but `macdeployqt` works on this Intel Mac:
- macOS 12.3
- Xcode 13.4.1
- Qt 6.3.1
Attachments
Issue Links
- is duplicated by
-
QTBUG-109738 Deploying a universal app for macOS fails
-
- Closed
-