How can I get the output written to stderr and stdout from an app that has been installed by .dmg, and is opened by double-clicking its app icon in the /Applications
directory?
(I can see the output when I call the app in a terminal by using the path /Applications/MyAppName.app/Contents/MacOS/myappname
, but this doesn't help since the the app behaves differently when I double-click the icon.)
Best Answer
This answer is from 2013 but is mostly still relevant.
Basically, when you double-click an app (same as
/usr/bin/open /Applications/SomeApp.app
) there is no stdout/stderr. The dev is expected to send any relevant output/errors to the available logging APIs such as NSLog.