Unity player crashes immediately, how to debug?

My project works fine when run in Unity, but when I run a build (for Mac, Universal), it crashes immediately when I try to open it. I don’t see any errors in my system’s console.

It doesn’t open, so the Unity development build option or script debugging have no effect.

I’m not sure what else I can do to debug this?

In the build’s folder, there’s an output_log, that’s the same thing as the Unity Editor console, so you can see Debug.Logs and warnings and exceptions and whatnot there. If there isn’t something in there giving hints now, try adding some Debug.Logs to the first things your build is doing to see if they are called.

I’ve seen that file on the windows builds but there’s no such file created on the Mac, at least in this scenario. I’ve even looked inside the package but there’s no type of log or anything that indicates the problem.

I’ve determined the issue. There’s a DLL I’m including that has some automated tests included incorrectly and since nunit isn’t available it’s erroring out.