I'm trying to add AppCenter Analytics and Crash reporting to my .NET MAUI app targeting .NET 8 -- using the latest versin of Visual Studio 17.8.0 and the version of .NET 8 installed on my machine is 8.0.100
.
I add Microsoft.AppCenter.Analytics
and Microsoft.AppCenter.Crashes
packages, both version 5.0.3
. They also add Microsoft.AppCenter
as a dependency.
I then add the following in MauiProgram.cs
right before return builder. Build();
line:
AppCenter.Configure("ios=my-secret-for-ios-from-appcenter-portal;android=my-secret-for-android-from-appcenter-portal");
if (AppCenter.Configured)
{
AppCenter.Start(typeof(Analytics));
AppCenter.Start(typeof(Crashes));
}
I can build the app but as soon as I start the app, it crashes on my iPhone connected to my laptop via USB.
After installing the NuGet packages, I did remove bin
and obj
folders. Cleaned the solution and rebuilt it. I then run it on an iPhone connected to my Windows machine via USB and it instantly crashes.
I was able to play with AppCenter on a .NET MAUI app before. Is anyone else experiencing any issues on a .NET MAUI app targeting .NET 8?
I'm having the same issues (CLang++ compile fail) and will be monitoring any package updates for the AppCenter compatibility ranges, esp. under .NET 8.0.
I see in the following forum that there are some POC elements so I'm going to check them out. Or remove AppCenter from my solution until this all gets resolved.
https://github.com/microsoft/appcenter-sdk-dotnet/issues/1755
I also updated my Visual Studio and XCode as there is now support for more recent tooling to see if this brings any improvements. https://github.com/xamarin/xamarin-macios/releases/tag/dotnet-8.0.1xx-xcode15.1-8004