Post

Replies

Boosts

Views

Activity

Reply to codesign CLI throws error on OSX 12 (M1) and Xcode 12/13
This turned out to be an issue with OSX 12+ ad-hoc signing anything compiled on it with a machine-specific signature. This made codesign fail with no useful message. Trying this on OSX11 gave a useful message about Mach-O header segment overlaps. In the end, the solution was to remove the ad-hoc signing with something like optool which made it possible to correctly sign.
Jan ’22