How to get the stack trace information of ZIM SDK?
Each platform can obtain the stack trace information of ZIM SDK according to the following methods.
Android
-
Real-time log analysis
adb logcat | ndk-stack -sym [directory where the target abi (armeabi/armeabi-v7a/arm64-v8a) so dynamic library is located]For example:
adb logcat | ndk-stack -sym /path/to/your/project/armeabi-v7a -
Get logs first and then analyze (use adb logcat to save log files, then analyze through ndk-stack command)
adb logcat > xx.logndk-stack -sym [directory where the target abi so dynamic library is located] -dump [log file]For example:
adb logcat > crash.logndk-stack -sym /path/to/your/project/armeabi-v7a -dump crash.log
iOS/iPadOS
- Connect the iOS device to Mac, open Xcode, select "Window > Devices and Simulators" from the top menu bar.
- Select the specified device on the left, then click "View Device Logs". In the pop-up dialog, find the log with the corresponding Process application package name and Type as "Crash" at the corresponding time. Right-click on this log and select "Export Log". The saved ".crash" file is the stack trace information.

macOS
Files ending with ".crash" in the "~/Library/Logs/DiagnosticReports" path are stack trace information.
