macdeployqt: ERROR: Could not find bundle binary for "MyApp.app", even though MyApp.app/Contents/MacOS/MyApp exists
-
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?
-
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.
-
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.