我正在使用macdeployqt将一个 QML 应用程序部署到 Mac OS,完成后,所有路径都很好,并尝试从 .dmg 生成的包中执行它,我可以启动应用程序。尝试从学期开始执行它,我收到一个 QML 错误,指出未安装 QtQuick.Window 和其他模块。有什么线索吗?
这是我尝试过的命令:
$ macdeployqt MyApp.app -qmldir=/Users/jgd/dev/myapp -no-strip
我收到此错误:
Log: Deploying QML imports
Log: Application QML file search path(s) is ("/Users/jngd/devel/MyApp/")
ERROR: qmlimportscanner output error. Expected json array, got:
ERROR: ""
QProcess: Destroyed while process ("/Users/jngd/devel/Qt/5.10.0/clang_64/bin/qmlimportscanner") is still running.