Instabug/Instabug-iOS

[Crash] IBGSwizzlerManager crashes on launch

vytautas1991 opened this issue · 8 comments

Steps to Reproduce the Problem

Expected Behavior

Application launch

Actual Behavior

Application crash

Instabug integration code

Fatal Exception: NSInvalidArgumentException
*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]

Screenshot 2024-03-20 at 15 39 27

SDK Version

12.9.0

iOS Version

16.6-17.4

Device Model

Any

[Optional] Project That Reproduces the Issue

Hello @vytautas1991,
We're currently working on a fix for this and will update you ASAP. Meanwhile, to avoid this crash you can disable APM.webViewTrackingEnabled

Thanks for feedback

Unfortunately, since the crash happens right after app launch, your suggested fix doesn't help.

@vytautas1991 Can you please use this build until a fix is officially released?
pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/fix-nil-navigation-delegate/12.9.2/Instabug.podspec'

How long could it take for official release? We are using SPM :/

@vytautas1991 Do you initialize a WebView on launch? If yes, can you confirm not setting the navigationDelegate as nil for this WebView or any other. This is just a workaround until we release the fix from our side

It's fine now, we are using Your custom build and crash seems to be gone. Thanks.

A fix has been released in 12.9.2