Crash in nanopb iOS 17.4.0

2.7k views Asked by At

My app started crashing right on startup on iOS 17.4. Prior this version everything was ok. Crashlytics says this is some crash in nanopb on main thread in pb_check_proto3_default_value + 342.

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000001736eb51c

enter image description here

As you can see, right in AppDelegate, Firebase starts its warming up routines (I guess) and crashes.

nanopb sources are cryptic for me because I don't know C. The worst part the bug is reproducible only in Testflight builds, local builds (both release and debug) work well.

What can I do, guys? Maybe some of you experienced this problem on iOS 17.4 as well?

2

There are 2 answers

1
jpa On BEST ANSWER

This is a bug in Firebase, which should be fixed in version 10.22.0.

https://github.com/firebase/firebase-ios-sdk/issues/11403

0
Paul Beusterien On

In addition to jpa's answer of updating to Firebase 10.22.0, you can stick with Xcode 15.2 or earlier for previous Firebase versions.

The Xcode 15.3 release mode build exposes/introduces the coding issue in FirebaseSessions.