Search code examples
iosswiftcore-foundationcfdictionary

Causes of CFDictionaryGetValue crash?


I'm having random crashes within my swift app and they are all throwing a similar error around CFDictionaryGetValue

Here are two screenshots from my Google Crashlytics showing the error and that its effecting to different URLs, Note these are from two separate crashes

enter image description here enter image description here

Then here is also a screenshot directly from within Xcode where I was able to reproduct the error: enter image description here

There doesn't seem to be any specific action that causes this issue and it occurs at random times.

And advise for trying to trace it and debug would be much appreciated!

Thanks Oliver


Solution

  • As it turns out this issue was caused by a bug within the Firebase Performance SDK. After removing the SDK everything is working as expected

    https://github.com/firebase/firebase-ios-sdk/issues/6734?fbclid=IwAR0L5U4dsBjyUGmklr8qEohlKTyY7P6zJwzWUnU3dUTnFmb0aclK4-rt5os