Search Unity

Missing managed stacktraces in iOS builds

Discussion in 'Unity Build Automation' started by ZimM, Jun 4, 2019.

  1. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    Whenever I make local iOS builds in Xcode, I am always able to get managed stacktraces when doing anything like this:
    UnityEngine.StackTraceUtility.ExtractStackTrace()
    System.Environment.StackTrace
    new System.Diagnostics.StackTrace(new System.Diagnostics.StackFrame(true)).ToString()
    new Exception("").ToString()


    However, when I build with UCB, all of these return nothing. Empty. I am using exactly the same Unity version 2018.4.1, same settings, same everything.
    What could be the problem? This makes UCB builds completely unusable for me, since if an exception happens, there is absolutely no way to figure out the cause.
     
  2. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
  3. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    Just tried, yes, works just fine.

    Interestingly enough, if I make a Development build on UCB, I am able to attach a Visual Studio debugger, and when an exception happens, it pauses and I can see the stacktrace in Visual Studio. But from the game itself - nope, no way to get stacktrace.