Zig binary crashes after code signing on MacOS (issue).
- Provision a code signing certificate (see)
- Build
app
binary$ make build
- Run
app
$ ./app Hello, World!
- Sign
app
binary$ make sign
- Verify the binary
$ make verify app: valid on disk app: satisfies its Designated Requirement
- Run signed
app
binary:or:$ ./app segmentation fault ./app
Expected:$ ./app bus error ./app
$ ./app Hello, World!
$ make env
Zig version: 0.13.0
OS:
ProductName: macOS
ProductVersion: 14.6.1
BuildVersion: 23G93
CPU:
Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
x86_64