My Command Line Tool Killed on M1 Mac from Terminal

I’m using Xcode 12.2 to build a tool I normally run from a script. (Previously on macOS 10.14 and earlier.)

When I build and run it from Xcode, it runs fine.

If I try to run it from Terminal, I get the message
Code Block
Killed


This is the first time I’ve used Big Sur, do I now need to worry about signing my own tool? I’ve attempted to have Xcode manage this, and Sign to Run Locally. But nothing seems to make a difference.

How can I build a program to be run from command line, for Apple Silicon?
I don’t know the complete answer, but I think the issue was that changing the signing settings didn’t actually sign the app (because Xcode didn’t rebuild it). If I delete the executable, it will be rebuilt with proper Xcode local signing.

I met the same error . When I run my command-line tool built from clion on the other`s mac. How can I fix it?

My Command Line Tool Killed on M1 Mac from Terminal
 
 
Q