suddenly 'zsh: killed' my Xcode-based console app

I have a small command-line app I've been using for years to process files. I have it run by an Automator script, so that I can drop files onto it. It stopped working this morning.

At first, I could still run the app from the command line, without Automator. But then after I recompiled the app, now I cannot even do that. When I run it, it's saying 'zsh: killed' followed by my app's path. What is that?

The app does run if I run it from Xcode. How do I fix this?

Answered by bsabiston in 826360022

I don't think there was a crash, that I could tell. I went around and around with this on Saturday - eventually just made a brand new Xcode project and added the code into it. I found the culptrit that way. When I added the build phase step to copy the executable to the directory I wanted, it failed when the copy was run.
There's a checkbox in the copy phase that says 'code sign on copy' or something like that. When I checked that, it started working again.

I never had that checked before, or maybe the checkbox wasn't even there before, and it was fine until yesterday.

It’s hard to say what’s going on here without knowing more about the crash. Please post a crash report, per the advice in Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] It could be that your program is being blocked by the trusted execution system — as discussed on that other thread you found — but there are lots of other potential causes for getting a SIGKILL.

Accepted Answer

I don't think there was a crash, that I could tell. I went around and around with this on Saturday - eventually just made a brand new Xcode project and added the code into it. I found the culptrit that way. When I added the build phase step to copy the executable to the directory I wanted, it failed when the copy was run.
There's a checkbox in the copy phase that says 'code sign on copy' or something like that. When I checked that, it started working again.

I never had that checked before, or maybe the checkbox wasn't even there before, and it was fine until yesterday.

Written by bsabiston in 826360022
I don't think there was a crash, that I could tell.

If a command-line tool crashes the system generally doesn’t show a crash report to the user. However, it usually does record a crash report, and you can see it by selected Crash Reports on the left in the Console app.

Anyway, I’m glad to hear you got it sorted.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

suddenly 'zsh: killed' my Xcode-based console app
 
 
Q