-
Hi all, I spent 2 days trying to find a solution for my problem. Without success. I've checked the posts of users with similar issues but still couldn't get it to work. The issue: Launching the exec file from within the .app (MyApp.app > Contents > MacOs > MyApp) works perfectly fine.
Launching the exec file from within the .app (MyApp.app > Contents > MacOs > MyApp) works perfectly fine. Here is my .spec file.
Any guidance and help would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You seem to be trying to write your For the purposes of debugging, try to hard-code the |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for the above - this helped me to debug my problem. For anyone else struggling with a Unix Executable that runs fine, but a .app that does not run (MacOS). My issue was the difference in where files are located: .app: Unix executable: The only change being "contents" System: |
Beta Was this translation helpful? Give feedback.
You seem to be trying to write your
error.log
in the current working directory. When you "open" an .app bundle, your current working directory is most likely not writable (I think it is/
, but it could also be the temporary read-only location where the OS translocates untrusted .app bundles), so your exception handling probably raises an exception itself.For the purposes of debugging, try to hard-code the
error.log
path to be an absolute path in your user's home directory, as was suggested in other similar issues (#5154 (co…