Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. macdeployqt: ERROR: Could not find bundle binary for "MyApp.app", even though MyApp.app/Contents/MacOS/MyApp exists

macdeployqt: ERROR: Could not find bundle binary for "MyApp.app", even though MyApp.app/Contents/MacOS/MyApp exists

Scheduled Pinned Locked Moved Solved Installation and Deployment
osxmacdeployt
3 Posts 2 Posters 2.4k Views
  • 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.
  • M Offline
    M Offline
    mbrochmann
    wrote on 29 Apr 2019, 18:55 last edited by
    #1

    I am trying to run:

    /my/home/path/Qt/5.12.2/clang_64/bin/macdeployqt MyApp.app

    But I get a message:

    ERROR: Could not find bundle binary for "MyApp.app"

    along with a few objdump and install_name_tool errors that indicate that they were called on an empty filename.

    When I specify -executable=./MyApp.app/Contents/MacOS/MyApp at the command line, as in:

    /my/home/path/Qt/5.12.2/clang_64/bin/macdeployqt MyApp.app -executable=./MyApp.app/Contents/MacOS/MyApp

    I get the same message about not finding the bundle binary (in fact I get it twice!), but the Qt frameworks and plugins are copied into the MyApp.app/Frameworks and MyApp.app/PlugIns directories. However, it is still not a successful deployment as when I try to execute the app, I get a popup message:

    You can't open the application "MyApp" because it may be damaged or incomplete.

    What are some possible reasons that I could get a message that the "bundle binary" was not found even though it exists in (what I believe is) the correct location?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 Apr 2019, 19:06 last edited by
      #2

      Hi,

      I'd check the binary itself. But first I would do a full rebuild.

      If the error persists, I'd try with a default project.

      In any case, you might also want to update Qt to 5.12.3 since it just got released.

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbrochmann
        wrote on 29 Apr 2019, 19:16 last edited by
        #3

        Well, I discovered that the "executable file" in Info.plist was something different than MyApp. So the error was due to my false assumption that macdeployqt would look for an executable with the same name as the app bundle itself.

        1 Reply Last reply
        2

        3/3

        29 Apr 2019, 19:16

        • Login

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