Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. macdeployqt can't link cocoa
Forum Updated to NodeBB v4.3 + New Features

macdeployqt can't link cocoa

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 194 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kiovtorov
    wrote on last edited by
    #1

    I am trying to deploy my QML Application for macOS but it crashes so I ran a debugger. It says that it finds some plugin cocoa but maybe it can't link it and that is why it crashes?

    (lldb) run
    Process 71732 launched: '/Users/boyankiovtorov/Documents/Finbank/build/Qt_6_8_2_for_macOS-Release/Release/appFinbank.app/Contents/MacOS/appFinbank' (arm64)
    
    2025-03-09 13:36:18.867689+0200 appFinbank[71732:2533264] [qt.qpa.plugin] Could not load the Qt platform plugin "cocoa" in "" even though it was found.
    2025-03-09 13:36:18.867882+0200 appFinbank[71732:2533264] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      Start the application with the QT_DEBUG_PLUGINS environment variable set to 1. It should give more information about what is happening.

      K Offline
      K Offline
      Kiovtorov
      wrote on last edited by
      #3

      @SGaist
      I solved it using the relative path to qt macdeploy qt .../6.8.2/macos/bin/macdeployqt
      It had some other issues with mimer but after I solved it. The application ran correctly

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Start the application with the QT_DEBUG_PLUGINS environment variable set to 1. It should give more information about what is happening.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        K 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Start the application with the QT_DEBUG_PLUGINS environment variable set to 1. It should give more information about what is happening.

          K Offline
          K Offline
          Kiovtorov
          wrote on last edited by
          #3

          @SGaist
          I solved it using the relative path to qt macdeploy qt .../6.8.2/macos/bin/macdeployqt
          It had some other issues with mimer but after I solved it. The application ran correctly

          1 Reply Last reply
          0
          • K Kiovtorov has marked this topic as solved on

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved