Instabug / Instabug-iOS

In-app feedback and bug reporting tool for apps.
https://instabug.com/
Other
290 stars 67 forks source link

[Crash] IBGSwizzlerManager crashes on launch #490

Closed vytautas1991 closed 6 months ago

vytautas1991 commented 6 months ago

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

ahmedsalah196 commented 6 months ago

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

vytautas1991 commented 6 months ago

Thanks for feedback

vytautas1991 commented 6 months ago

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

ahmedsalah196 commented 6 months ago

@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'

vytautas1991 commented 6 months ago

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

ahmedsalah196 commented 6 months ago

@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

vytautas1991 commented 6 months ago

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

ahmedsalah196 commented 6 months ago

A fix has been released in 12.9.2