TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
211 stars 49 forks source link

Crashlytics not initialize with MAUI .NET 8 #241

Closed Ankit8913 closed 3 months ago

Ankit8913 commented 9 months ago

I've recently upgraded my maui project to .NET8 where Crashlytics was not working after upgrading to .NET 8.

When I run the project I am getting following errors:

[I-CLS000000] Crashlytics could not find the symbol for the app's main function and cannot start up. This can happen when Exported Symbols File is set in Build Settings. To resolve this, add "__mh_execute_header" as a newline to your Exported Symbols File.

[I-CLS000000] Crash reporting could not be initialized

Any idea on what might be the issue ?

ultimategrandson commented 9 months ago

I am having this same problem. I don't use this plugin library, the issue seems to be the actual Xamarin.Firebase.iOS.Crashlytics - I have not been able to find a solution as of yet.

rjhind commented 9 months ago

I use the Xamarin.Firebase.iOS.Crashlytics package and also have the issue where crashlytics doesn't report anything so I'm guessing it the same.

popandov commented 7 months ago

Can anyone update on this one ? I can't seem to get iOS crashlytics to work on net8.0. @Ankit8913 maybe you found something ?

ultimategrandson commented 7 months ago

This work around seems to work: https://github.com/xamarin/GoogleApisForiOSComponents/issues/643#issuecomment-1921067013

suchithm commented 4 months ago

This work around seems to work: https://github.com/xamarin/GoogleApisForiOSComponents/issues/643#issuecomment-1921067013

<PropertyGroup>
    <_ExportSymbolsExplicitly>false</_ExportSymbolsExplicitly>
</PropertyGroup>

This one causes the below error in google crashlytics console: This requires uploading Dsym file every time while debugging. Unless uploading DSYM it is not showing issue log entry in console. Do we have any approach without adding above line as it requires uploading dsym file manualy?

Screenshot 2024-05-14 at 1 12 50 PM
AdamEssenmacher commented 3 months ago

DSYMs only being uploaded on Release builds has nothing to do with the _ExportSymbolsExplicitly workaround. It's a configurable setting: https://github.com/AdamEssenmacher/GoogleApisForiOSComponents/tree/main/source/Firebase/Crashlytics