I have created my first app with python using py2app and it build my app successfully but when I try to open it, it crash but when I open it's package and run it from this path: myapp.app/contents/macos/myapp it open console and run my app correctly without any error. I can't understand how to read this kind of mac errors. I will be happy if you can help me with that:
Replies
Consider this snippet from the crashed thread’s backtrace:
10 Foundation … -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 204
11 AppKit … -[NSMenuItem initWithTitle:action:keyEquivalent:] + 384
12 libtk8.6.dylib … +[NSMenuItem(TKUtils) itemWithSubmenu:] + 80
Your code — well, library code from another third party that you’ve included in your app — (frame 12) has called -[NSMenuItem initWithTitle:action:keyEquivalent:] (frame 11) which has tripped an assertion (frame 10). There are two possible causes for this assertion:
-
The string passed to the
titleparameter isnil. -
The string passed to the
keyEquivalentparameter isnil.
Both are a clear error on the part of the caller.
I can’t offer any further insight because all the frames deeper the backtrace are third-party code. I recommend that you escalate this via the support challenge for that code.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
-
Thanks for your reply. Could you explain what is support challenge? and another thing, why my app works correctly when I open it's package content and run it's "Unix Executable File"? what's deference between "dmg" and "Unix Executable File" of my app?