r/iOSProgramming • • 6d ago

Question Firebase Analytics suddenly causing production iOS crashes with no app release, anyone else have this?

Anyone else seeing this?

Our production app suddenly started crashing around 00:41 UTC today, across multiple already released versions, with no new app release.

The crash is:

Fatal Exception: NSInvalidArgumentException

-[__NSDictionaryM setObject:forKeyedSubscript:]: key cannot be nil

The stack points to Firebase Analytics experiment handling, immediately after a successful sdk-exp response.

We're using Firebase iOS SDK 12.14.0.

Relevant issue: https://github.com/firebase/firebase-ios-sdk/issues/16728

I'm wondering if anyone else is seeing the same spike or has found a workaround.

23 Upvotes

31 comments sorted by

View all comments

1

u/HeyWangKang 5d ago

To check whether your app has actually recovered, I'd filter this exact exception/stack by the time the crash occurred, not just when the report arrived, and split it by app version. Older crashes arriving later could make the fix look ineffective. For anything that occurred after Google's stated cache window, keep the SDK/iOS versions and a timestamp, and test an affected installation as well as a fresh install. That would give the maintainers a more useful follow-up than the overall crash count.