Unity IL2CPP Mappings
Unity games built with IL2CPP produce stack traces that do not have file names or line numbers as the crash relates to the automatically generated C++. For Android and iOS apps, you can upload the line mappings file (LineNumberMappings.json
) that are generated by Unity to allow BugSnag to map the stack frames back to C# file names and line numbers.
Use the POST /unity-line-mappings endpoint to upload these mappings.
cURL example
Symbolication guide
The BugSnag Unity SDK comes with functionality to upload these files automatically when the game is built via the Unity Editor. They can also be uploaded via the command line or build scripts using the BugSnag CLI.
See our symbolication guide for a higher-level overview of integrating uploads into your build systems to see full stacktraces for all your releases.