macOS compiled binary runs in build folder, but reports killed: 9 when moved to /usr/local/bin I build a series of tools on macOS 10.15.6 using clang from Xcode 12.1.  When the binaries are built, they complete the test runs from within the build folder.  However, when I copy them to /usr/local/bin (setting owner, group, and permissions), they all exit on launch with &quot;Killed: 9&quot;.  dtrace/dtruss both simply report that sip is enabled and nothing else.
The tools are not sandboxed and don't do any kernel level trickery.  I've also checked the xattr flags and there are no flags set.
Does anyone have a tip on a tool that I could use on the Mac platform to determine what's going on (gdb is not installed)?
Tim
This was caused by kernel caching of previously signed binaries and my replacing those binaries with newly compiled binaries which weren't part of a signed package.
By deleting the existing binaries, rebooting the Mac to clear the kernel cache, and then recopying the new binaries into place, I sorted the issue.