codesign, “signature too large to embed” error

February 18, 2011 by · Leave a Comment 

Override the size allocated for the signature by passing –signature-size to codesign.

codesign --signature-size 9400 -f -s "Code Sign Cert" ./myapp