Where's the frameworks on a app for mac i built
-
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 ?