是的,您必须制作自定义崩溃报告管理器,并且可以NSSetUncaughtExceptionHandler用于获取崩溃报告堆栈。
例子
NSSetUncaughtExceptionHandler { exception in
print(exception)
print(exception.callStackSymbols)
// Write callStackSymbols into the file
// Call your mail function with that file
// mail()
}
let array = NSArray()
let element = array.object(at: 4)
Run Code Online (Sandbox Code Playgroud)
您可以将该崩溃报告写入文件并邮寄。
| 归档时间: |
|
| 查看次数: |
754 次 |
| 最近记录: |