The team needs to change Info.plist to test certain features. But sometimes the app (very) silently crashes.
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x1
Now, if we test the signature as recommended here:
codesign --verify -vvvv -R='anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and (certificate leaf[field.1.2.840.113635.100.6.1.2] exists or certificate leaf[field.1.2.840.113635.100.6.1.4] exists)'
< path to app >
or
spctl --verbose --assess
< path to app >
< path to app >: invalid Info.plist (plist or signature have been modified)
Ok, but I really want to modify it:
So two questions:
The question has an answer, in the brotherhood: https://superuser.com/questions/961797/how-to-change-info-plist-in-a-signed-package .
Re-signing the application can be very fast:
codesign --force --verbose=4 --sign "Developer ID Application: <your name> (<team ID>)" <application>
The trick is to avoid the --deep
option. On my High Sierra it takes about 20 seconds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With