如何解决AppCenter 崩溃和 Firebase Crashlytics - 两者都不起作用 - Xamarin.Forms iOS
尝试在单个应用程序中集成 Firebase Crashlytics 和 AppCenter Crashes。我明白了,这些都无法记录任何崩溃。
public override bool FinishedLaunching(UIApplication app,NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
Firebase.Core.App.Configure();
Crashlytics.SharedInstance.Init();
AppCenter.Start("xxxxxxxxxxxxxxxxxxxx",typeof(Analytics),typeof(Crashes));
LoadApplication(new App());
return base.FinishedLaunching(app,options);
}
另外,我使用的是最新的 SDK。
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.8.0.1451" />
<PackageReference Include="Xamarin.Essentials" Version="1.5.3.2" />
<PackageReference Include="Microsoft.AppCenter.Analytics">
<Version>4.1.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Crashes">
<Version>4.1.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.Firebase.iOS.Core">
<Version>6.10.4</Version>
</PackageReference>
<PackageReference Include="Xamarin.Firebase.iOS.Crashlytics">
<Version>4.6.2</Version>
</PackageReference>
</ItemGroup>
此外,从 Visual Studio 控制台日志中,我收到以下错误日志。
[Crashlytics] The signal SIGABRT has a non-Crashlytics handler (sigabrt_signal_handler). This will interfere with reporting. 2021-02-24 12:26:30.173858+0530 DemoApp.iOS[12308:580294] 6.34.0 -
[Firebase/Crashlytics][I-CLS000000] Warning: NSUncaughtExceptionHandler is '_ZL17exception_handlerP11NSException' in '/Users/sakeridilipkumar/Library/Developer/CoreSimulator/Devices/CC5157E9-F6A5-46D8-BA9E-B2D67936538D/data/Containers/Bundle/Application/41E5D8C0-19FC-474C-84B9-EDFC5C9B024A/DemoApp.iOS.app/DemoApp.iOS'
[Crashlytics] The signal SIGBUS has a non-Crashlytics handler (mono_sigsegv_signal_handler). This will interfere with reporting.
[Crashlytics] The signal SIGFPE has a non-Crashlytics handler (mono_sigfpe_signal_handler). This will interfere with reporting.
[Crashlytics] The signal SIGILL has a non-Crashlytics handler (mono_crashing_signal_handler). This will interfere with reporting.
[Crashlytics] The signal SIGSEGV has a non-Crashlytics handler (mono_sigsegv_signal_handler). This will interfere with reporting.
[Crashlytics] The signal SIGSYS has a non-Crashlytics handler (mono_crashing_signal_handler). This will interfere with reporting.
[Crashlytics] The signal SIGTRAP has a non-Crashlytics handler (MSplcrash_signal_handler). This will interfere with reporting.
任何找到根本原因的建议都值得赞赏。
解决方法
解决了。
我只保留了以下软件包,它开始工作了。我还需要上传 dSYM 文件才能上传。请上传存档时生成的相同 dSYM。
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.8.0.1451" />
<PackageReference Include="Xamarin.Essentials" Version="1.5.3.2" />
<PackageReference Include="Microsoft.AppCenter.Analytics">
<Version>4.1.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.Firebase.iOS.Core">
<Version>6.10.4</Version>
</PackageReference>
<PackageReference Include="Xamarin.Firebase.iOS.Crashlytics">
<Version>4.6.2</Version>
</PackageReference>
</ItemGroup>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。