I built a Makefile-based set of command-line sound-synthesis tools in native arm64 for the first time on my new M1 Mac Studio running Ventura 13.4 (I've been building them x86-64 for the past month and running via Rosetta). The primary executable plus its private dylib built and linked without error, and ran blazingly fast on the machine. THEN I needed to modify and recompile 2 source files, and when I did, the program stopped working, getting killed immediately. I reverted the source files and rebuilt, but it still died, with the crash log showing:
Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid)) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: CODESIGNING 1 Taskgated Invalid Signature
and the log showing:
default 15:23:35.989553-0700 kernel proc 70090: load code signature error 2 for file "CMIX" default 15:23:35.990396-0700 kernel ASP: Security policy would not allow process: 70090, /opt/local/src/RTcmix.git/bin/CMIX
This program has never been signed in any fashion, and was not when its first version worked. There were NO config changes between the first working build and the remaining failures. A friend runs the same build on an M1 laptop running MacOS 12.6. and does not have this issue.
Did the rebuild trigger some new security system? A reboot "fixes" the problem until I need to recompile again, when the problem repeats.
Thanks for any help!