Unsolved macdeployqt fails: truncated or malformed object
-
Trying to run macdeployqt after the build of my app but it fails.
I initially had Xcode 11, but I read the latest MacOSX SDK supported was 10.14, so I removed Xcode, and installed Xcode 10.3, but still getting the same error.
I was using qt from homebrew. I checked again with the Qt 5.12.5 binary release from www.qt.io, but getting the same error./Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names -arch x86_64 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.12 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/Users/me/Dev/Qt/5.12.5/clang_64/lib -o MyNewApp.app/Contents/MacOS/MyNewApp release/main.o release/simLib.o -F/Users/me/Dev/Qt/5.12.5/clang_64/lib -framework QtCore -framework DiskArbitration -framework IOKit macdeployqt MyNewApp.app -always-overwrite ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore': truncated or malformed object (load command 18 LC_LOAD_DYLIB library name extends past the end of the load command)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore': truncated or malformed object (load command 18 LC_LOAD_DYLIB library name extends past the end of the load command)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/platforms/libqcocoa.dylib': truncated or malformed object (load command 13 LC_LOAD_DYLIB library name extends past the end of the load command)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/platforms/libqcocoa.dylib': truncated or malformed object (load command 13 LC_LOAD_DYLIB library name extends past the end of the load command)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/platforms/libqcocoa.dylib': truncated or malformed object (load command 13 LC_LOAD_DYLIB library name extends past the end of the load command)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/printsupport/libcocoaprintersupport.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/printsupport/libcocoaprintersupport.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/printsupport/libcocoaprintersupport.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/styles/libqmacstyle.dylib': truncated or malformed object (load command 21 LC_LOAD_DYLIB library name extends past the end of the load command)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/styles/libqmacstyle.dylib': truncated or malformed object (load command 21 LC_LOAD_DYLIB library name extends past the end of the load command)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/styles/libqmacstyle.dylib': truncated or malformed object (load command 21 LC_LOAD_DYLIB library name extends past the end of the load command)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqgif.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqgif.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqgif.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqicns.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqicns.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqicns.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqico.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqico.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqico.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqjpeg.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqjpeg.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqjpeg.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqmacheif.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqmacheif.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqmacheif.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqmacjp2.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqmacjp2.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqmacjp2.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqtga.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqtga.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqtga.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqtiff.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqtiff.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqtiff.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqwbmp.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqwbmp.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqwbmp.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqwebp.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqwebp.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/imageformats/libqwebp.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/iconengines/libqsvgicon.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/iconengines/libqsvgicon.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n" ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'MyNewApp.app/Contents/PlugIns/iconengines/libqsvgicon.dylib': truncated or malformed object (no LC_ID_DYLIB load command in dynamic library filetype)\n"
Running on macOS 10.14.6, Qt 5.12.5, Xcode 10.3, Xcode Command Line Tools macOS 10.14 for Xcode 10.3
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump -version:
Apple LLVM version 10.0.1 (clang-1001.0.46.4) -
Hi, I've managed to get rid of this error using
-no-strip
option formacdeployqt
:
macdeployqt MyNewApp.app -no-strip -always-overwrite