Quantcast
Channel: Questions in topic: "xcode"
Viewing all articles
Browse latest Browse all 1047

how do i see the output of fprintf calls I make from my c native plugin in xcode console?

$
0
0
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.

Viewing all articles
Browse latest Browse all 1047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>