You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: cocoa, minimal, offscreen.
您可能要将两组Qt二进制文件加载到同一个进程中。检查所有的插件都是根据正确的Qt二进制编译的。导出DYLD_PRINT_LIBRARIES=1,并检查是否只加载了一组二进制文件。
qt.qpa。在“”中无法加载Qt平台的插件“cocoa”,即使它被找到了。
此应用程序启动失败,因为没有Qt平台插件可以初始化。重新安装应用程序可以修复这个问题。
可用的平台插件有:cocoa, minimum, offscreen。
怎么解决?求助大神,急!!!