Qt 5.5 OSX - This application failed to start because it could not find or load the Qt platform plugin "cocoa".
-
When I build my app in Qt Creator, it runs fine under Debug mode. When I switch to Release mode, clean, run qmake, and rebuild... I get the following error when running the Release version:
This application failed to start because it could not find or load the Qt platform plugin "cocoa".
Any ideas??
-
I found that if I run macdeployqt after I build it, I get that error. I have to delete the whole build directory content before running it again and it's fine after.