hello.
I use upx391w to compress mach, signature failed.
signature options -f -s
codesign_allocate: object: /Desktop/zzzzz.app/zzzzz malformed object (size field of section 0 in LC_SEGMENT command 2 greater than the segment)
zzzzz.app: object file format unrecognized, invalid, or unsuitable
Please give more information. The minimum is the output of "otool -l original_file compressed_file" to show the LC_SEGMENT64 and other header information from the uncompressed and compressed executables. Also include the version number of the tool(s) and development environment that you are using.
Try to construct a small test case which fails, then upload the executable here (click on "Add attachments" near the bottom of this page.) For instance, try the minimal program: