App bundle not work after executing macdeployqt
-
Hi,
I am creating Qt application installer for Windows and Mac ventura using QT Installer Framework. I have successfully created Qt application installer for Windows using QT Installer framework and it works fine on Windows 10 and 11.Now I am creating Qt application installer for macOS using QT installer framework. After executing macdeployqt/macdeployqt6, app bundlle not work (i.e. application under macOS folder not work) and I am getting an error.
When I run the following otool command, I get these ref paths which looks fine. It contains all libs under Frameworks.
otool -L inspirationalclips.app/Contents/MacOS/inspirationalclips
inspirationalclips.app/Contents/MacOS/inspirationalclips:
@rpath/QtMultimediaWidgets.framework/Versions/A/QtMultimediaWidgets (compatibility version 6.0.0, current version 6.9.1)
@rpath/QtWidgets.framework/Versions/A/QtWidgets (compatibility version 6.0.0, current version 6.9.1)
@rpath/QtMultimedia.framework/Versions/A/QtMultimedia (compatibility version 6.0.0, current version 6.9.1)
@rpath/QtGui.framework/Versions/A/QtGui (compatibility version 6.0.0, current version 6.9.1)/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2487.30.104)
/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 341.35.0)@rpath/QtNetwork.framework/Versions/A/QtNetwork (compatibility version 6.0.0, current version 6.9.1)
@rpath/QtCore.framework/Versions/A/QtCore (compatibility version 6.0.0, current version 6.9.1)/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/UniformTypeIdentifiers.framework/Versions/A/UniformTypeIdentifiers (compatibility version 1.0.0, current version 709.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1600.157.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1336.61.1)
I am using QT 6.9.1 and latest Qt installer framework.
Please help me to fix this problem.
Thanks,
Sikander -
QT Installer framework is 4.10 for mac is used.
-
Though I have not signed the app yet, but I think app bundle should work properly and not give an error.
-
Hi and welcome to devnet,
Which exact error are you getting ?
And yes, not signing your application can trigger issues since macOS is pretty protective in that regard (signature + notarization).