apple-platform-rs icon indicating copy to clipboard operation
apple-platform-rs copied to clipboard

Removing signature/`--force`

Open melvyn2 opened this issue 2 years ago • 3 comments
trafficstars

There are some problems where re-signing an a binary will lead to a bad signature/unlaunchable app. It would be useful to have an operation that matches codesign's --remove-signature flag. Additionally, a flag --force or --overwrite for sign operations that first removes the signature would be useful when running into these bugs.

Currently I just run codesign --remove-signature before signing, but obviously this removes the benefit of not having to rely on apple tools.

melvyn2 avatar Apr 07 '23 01:04 melvyn2

The main branch has a few bug fixes related to re-signing a binary. I consider failure to re-sign a bug. Please file issues for any problems re-signing.

In addition, I think it makes sense to offer a command to strip signatures. It is something that codesign can do and is somewhat common in user workflows. So tagging accordingly.

indygreg avatar Nov 09 '23 03:11 indygreg