py2app
py2app copied to clipboard
Stdout not showing up in Console
The Tutorial says:
When run normally, your application's stdout and stderr output will go to the Console logs.
But, I'm not seeing anything there. Am I doing something wrong, or is this no longer true?
Possibly due to https://github.com/python/cpython/issues/91070?
The tutorial needs some love... Py2app tries to arrange for stdout to be send to Console.app, but on recentish versions of macOS (and anything that runs on hardware that you can buy from Apple) changed in a way that makes it impossible to do this.
The easiest way to look at message on stdout is to run the application directly from terminal, e.g. run "./dist/MyApp.app/Contents/MacOS/MyApp" (changing "MyApp" by the actual application name). That's not 100% the same as double clicking the app bundle, but is useful to find most problems with code.