c# - Unity 崩溃报告数组为空
问题描述
我是 C# 和 unity 的新手,我试图在我的 API 中获取统一崩溃报告,但是当我调用 CrashReport.reports 时,我总是得到一个空数组,尽管事实上在统一存储的文件夹中存在一些崩溃报告崩溃细节%USERPROFILE%\AppData\Local\Temp\Unity\Editor\Crashed\
。在我的服务中,我有:
public void Initialize()
{
var crashReports = CrashReport.reports; // this always returns empty
...
}
我是否缺少任何配置?
解决方案
登录%USERPROFILE%\AppData\Local\Temp\Unity\Editor\Crashed\
只是统一编辑器崩溃日志,而不是您的应用程序的日志。
此外,CrashReport
目前仅在 iOS 中可用。
https://docs.unity3d.com/2019.3/Documentation/ScriptReference/CrashReport.html
Note: this API currently is available only for iOS targets.
推荐阅读
- python - 错误的模型预测
- apigee - 通过 Apigee 推送响应
- python - pd.read_csv 的小数问题
- android - 为edittext添加背景会破坏布局
- android - BottomSheet 正在点击按钮
- c# - 访问真实相机
- highcharts - 股票票据在 StockChart 上重叠,有什么办法可以处理吗?
- php - 在 Codeigniter 中加载视图生成的 html 文件中的无效字符“'”(撇号)导致页面顶部出现白色覆盖
- mysql - WordPress 如何选择 wp_comment 表?
- regex - Google App Script - Regex - SyntaxError: Invalid quantifier Error