- Home /
how do i see the output of fprintf calls I make from my c native plugin in xcode console?
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.
Your answer
Follow this Question
Related Questions
Execute native ios code in unity 1 Answer
How can I build the rendering plugin example on OS X 10.10? 1 Answer
Unity iOS - "Assertion at reflection.c:6869" only in Development Build 0 Answers
Log debug message in Xcode's Devices Console 0 Answers
Is it just me, or does debug log crash unity on large iterations? 1 Answer