I would like to see the outputs of my (f)printf function calls that i make from my unity C native plugin in Xcode.
I am using Unity2021.2.7f1 and xcode 13.2.1 on macbookpro M1 max running macos 12.1.
In my plugin I tried calls like:
::fprintf( stderr, "hello\n") ;
::fflush( stderr);
// I have also tried stdout and also just using fprintf ( without::) also tried printf and ::printf
I remember this working few years back on older unity versions and older mac.
Also I read and remembered that these outputs can also go to a log file somewhere. I tried to look for files that would look like ~/Library/Unity/Debug.log but could not find. Either way I would much prefer to see the outputs in xcode console window.
I tried the option in xcode scheme to use terminal as console instead of xcode but then xcode would launch a terminal window but not be able to launch unity.
↧