San*_*rea 6 mono xamarin.ios ios xamarin crashlytics
我在现场Xamarin iOS应用程序中有一个"难以阅读"的崩溃日志.这个问题影响了近80%的用户,我正在努力破译它.
请看一下这个要点中的日志
我已在Crashlytics仪表板中上传了dSYM文件,但日志保持不变.Xamarin App这种类型的日志是否正常?
我甚至不知道应用程序的源文件导致崩溃.
我在AppDelegate.cs中有以下代码:
override public bool FinishedLaunching (UIApplication application, NSDictionary launchOptions){
//...
Setup.EnableCrashReporting (() => {
var crashlytics = Crashlytics.SharedInstance;
crashlytics.DebugMode = true;
Crashlytics.StartWithAPIKey ("my_key");
Fabric.With (new NSObject[]{ crashlytics });
AppDomain.CurrentDomain.UnhandledException += AppDomain_CurrentDomain_UnhandledException;
TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException;
}, Path.GetFileNameWithoutExtension (typeof(AppDelegate).Module.Name));
}
Run Code Online (Sandbox Code Playgroud)
以及以下方法:
void TaskScheduler_UnobservedTaskException (object sender, UnobservedTaskExceptionEventArgs e)
{
var ex = e.Exception;
Setup.CaptureManagedInfo(ex);
Setup.CaptureStackFrames(ex);
Setup.ThrowExceptionAsNative(ex);
}
void AppDomain_CurrentDomain_UnhandledException (object sender, UnhandledExceptionEventArgs e)
{
Setup.CaptureManagedInfo(e.ExceptionObject);
Setup.CaptureStackFrames(e.ExceptionObject);
Setup.ThrowExceptionAsNative(e.ExceptionObject);
}
Run Code Online (Sandbox Code Playgroud)
我在Fabric配置上遗漏了什么吗?
| 归档时间: |
|
| 查看次数: |
165 次 |
| 最近记录: |