mcmar mcmar - 1 year ago 89
Swift Question

My swift based Mac OS app crashes on launch on other machines

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:

Exception Codes: 0x0000000000000001, 0x0000000000000000

The other systems I've tried it on are running OS X 10.10, but in my project I've specifically targeted 10.10 for the build. Because the app runs fine on my machine, my initial thoughts are focused on code signing, but I've run the Archive command through Xcode and done the complete bundle validation with no probs. Any thoughts on next steps to try?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download