AdamEssenmacher / GoogleApisForiOSComponents

A community-supported fork of the abandoned Xamarin.iOS.* binding libraries from Microsoft
MIT License
63 stars 13 forks source link

Crash on .NET9 #56

Open awasilik opened 5 days ago

awasilik commented 5 days ago

Repro:

App crashes on startup with:

Launched application 'XXX' on 'iPhone (Phonies)' with pid 83495
dyld[83495]: Library not loaded: @rpath/FirebaseInstallations.framework/FirebaseInstallations
  Referenced from: <81D40DBC-0F7D-326C-BC2E-BC33D7A63950> /private/var/containers/Bundle/Application/31C5F9A5-474A-4615-A8D1-81670D00B205/TestMauiApp.app/Frameworks/FirebaseSessions.framework/FirebaseSessions
  Reason: tried: '/usr/lib/swift/FirebaseInstallations.framework/FirebaseInstallations' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FirebaseInstallations.framework/FirebaseInstallations' (no such file), '/private/var/containers/Bundle/Application/31C5F9A5-474A-4615-A8D1-81670D00B205/TestMauiApp.app/Frameworks/FirebaseInstallations.framework/FirebaseInstallations' (no such file), '/private/var/containers/Bundle/Application/31C5F9A5-474A-4615-A8D1-81670D00B205/TestMauiApp.app/Frameworks/FirebaseSessions.framework/Frameworks/FirebaseInstallations.framework/FirebaseInstallations' (no such file), '/private/var/containers/Bundle/Application/31C5F9A5-474A-4615-A8D1-81670D00B205/TestMauiApp.app/Frameworks/FirebaseInstallations.framework/FirebaseInstallations' (no such file), '/private/var/containers/Bundle/Application/31C5F9A5-474A-4615-A8D1-81670D00B205/TestMauiApp.app/Frameworks/FirebaseInstallations.framework/FirebaseInstallations' (no such file)
Application 'com.zooomies.fraps' terminated (with exit code '' and/or crashing signal '6).

iPhone XS with iOS16.6

miko1258 commented 3 days ago

Reproduced on iPhone 15 Pro Max, iOS 17.5.1

dartasen commented 3 days ago

Can reproduce that as well on my end

AdamEssenmacher commented 2 days ago
  • Add

Add what? There are over a dozen nugets published from this project.

Does it work with .net 8?

Have you tried adding the AdamE.Firebase.iOS.Installations package?

awasilik commented 2 days ago

Sorry, I udpated the repro.

Yes, it works on Net8

No I didn't add Installations, I use Plugin.Firebase for Firebase handling, this was just minimal reproduction steps needed for the crash, thought it makes it simpler ;)

If installations is needed, shouldn't it be a reference to the core nuget?

AdamEssenmacher commented 2 days ago

OK try adding the Installations package and see if it works.