This is needed to allow the codesign fix utility to work on OSX12+ OSX12 automatically adds an ad-hoc signature to the pp binary which makes it impossible to either sign properly or to even run this fix tool to allow it to be signed. This update first removes the signature and then corrects the Mach-O headers to allow the binary to be signed properly.
Note that on OSX12, once this utility has run on a pp binary, it won't run any more (without presumably disabling Gatekeeper) as it has no signature.
This is needed to allow the codesign fix utility to work on OSX12+ OSX12 automatically adds an ad-hoc signature to the pp binary which makes it impossible to either sign properly or to even run this fix tool to allow it to be signed. This update first removes the signature and then corrects the Mach-O headers to allow the binary to be signed properly.
Note that on OSX12, once this utility has run on a pp binary, it won't run any more (without presumably disabling Gatekeeper) as it has no signature.