I've created my first relatively simple Swift Mac OS app, it works fine on my development machine when running inside of Xcode and just natively outside as well. However when I run it on any other Mac, it crashes on launch with:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
I'd recommend that you attach the debugger to the application on your non-dev machine. This can be achieved by running
lldb <path to app> and then
process launch when the prompt is ready again. This will work as a standard debugger and should help you understand your error more completely and debug your issue.
There is no catch all for this sort of issue as to why it wouldn't run on another machine and so using the debugger to get information on the issue is the best choice in this situation.