codesign fails with Segmentation fault: 11

I'm developing a C sharp application in Visual Studio for Mac.


I have set up code signing in the IDE, but now it fails with the following error even though I have not made any changes to the code.

Code Block
A timestamp was expected but was not found.

Also, when I run the codesign command in the CLI, I get the following results.
Code Block
$ codesign
-v
--force
--timestamp
--sign [sign_id]
path/to/target_file
Segmentation fault: 11


How can I solve this?
I've already tried the following:
  • Rebuild the certificate.

  • Add --timestamp=none(Signing works, but error when getting Apple notarization.)

codesign fails with Segmentation fault: 11
 
 
Q