question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""

See original GitHub issue

I installed Qt 5.12.7 with aqt install 5.12.7 mac desktop and installed Qt Creator via Homebrew (brew cask install qt-creator).

I configured Qt Creator kits to use the one install via aqt and I can compile a simple widget project.

Unfortunately, I have the following error when starting it in debug mode:

QFactoryLoader::QFactoryLoader() checking directory path "/Users/martin/dev/build/pouet/Qt_5_12_7_clang_64_from_aqt/Debug/pouet.app/Contents/MacOS/platforms" ...
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.

The program has unexpectedly finished.

QT_DEBUG_PLUGINS is set to 1 as adviced here: https://forum.qt.io/topic/98816/qt-could-not-find-the-platform-plugin-cocoa/8

Any idea what’s going on?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:34 (30 by maintainers)

github_iconTop GitHub Comments

1reaction
miurahrcommented, May 31, 2020

v0.9.0 released with the fix.

1reaction
miurahrcommented, May 21, 2020

v0.9.0b3 is out with the fix. @MartinDelille does v0.9.0b3 solves your issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Qt could not find the platform plugin cocoa - Stack Overflow
The problem seems to be that I've installed Qt on /Library/Qt (outside of the user directory). After reinstalling Qt to /Users/ABC/Qt and a ......
Read more >
How to solve "Could not load 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.
Read more >
Qt Platform plugin "cocoa" not found error while trying to run ...
Trying to run the webcam example on my mac using command python webcam_recongnition.py . ... qt.qpa.plugin: Could not find the Qt platform plugin...
Read more >
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.
Read more >
wireshark3: Could not load the Qt platform plugin "cocoa"
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found. This application failed to start because no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found