Where's the frameworks on a app for mac i built
-
There is no frameworks on a app for mac i built, i only see Info.plist, PkgInfo and a macos folder with a unix executable file in it, will it work on other computers with qt not installed, There is usually qt frameworks for the app to work.
-
Hi,
Which version of Qt are you using ?
Which version of macOS ?
Are you using qmake or cmake ?
Can you share the project file ?By default, the settings should result in an app bundle being created.
When you are ready to distribute, you should follow the deployment guide to generate the complete bundle and dmg file to distribute it. -
Hi,
Which version of Qt are you using ?
Which version of macOS ?
Are you using qmake or cmake ?
Can you share the project file ?By default, the settings should result in an app bundle being created.
When you are ready to distribute, you should follow the deployment guide to generate the complete bundle and dmg file to distribute it.@SGaist I'm using Qt creator to make my app and I'm using qmake, My macOS version is Sequoia 15.3, and the Qt version I'm using is 6.9.0-beta2
-
Can you share your .pro file ?
-
QT += quick SOURCES += \ main.cpp resources.files = main.qml resources.prefix = /$${TARGET} RESOURCES += resources # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target -
Did you run macdeployqt on your app bundle after compilation ?
-
@SGaist I run it, but every time i open the app, it crashes, i also get these errors:
RROR: Could not parse otool output line: "/Users/user/Qt/6.9.0/macos/lib/QtCore.framework/Versions/A/QtCore (architecture arm64):" ERROR: Could not parse otool output line: "/Users/user/untitled/build/Qt_6_9_0_for_macOS-Debug/untitled.app/Contents/Frameworks/QtNetwork.framework/Versions/A/QtNetwork (architecture arm64):" ERROR: Could not parse otool output line: "/Users/user/Qt/6.9.0/macos/lib/QtCore.framework/Versions/A/QtCore (architecture arm64):" ERROR: Could not parse otool output line: "/Users/user/Qt/6.9.0/macos/lib/QtNetwork.framework/Versions/A/QtNetwork (architecture arm64):" ERROR: Could not parse otool output line: "/Users/user/Qt/6.9.0/macos/lib/QtCore.framework/Versions/A/QtCore (architecture arm64):" -
Can you try again but with the official 6.8.2 ?
-
It's still not working
-
Can you share a minimal compilable project that triggers this issue ?
-
I think i found why: qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. -
How did you run macdeployqt ?
-
@SGaist Here's the command i used:
macdeployqt appname.app -
You should crank up the verbosity to see exactly what is happening. Also, do you have multiple versions of macdeployqt on your system ?