OneSignal / OneSignal-iOS-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native iOS app with OneSignal. https://onesignal.com
Other
493 stars 262 forks source link

[Bug]: App crashes on launch NSInvalidArgumentException - *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1] #1456

Closed zxx0712 closed 3 months ago

zxx0712 commented 3 months ago

What happened?

App crashes at launch, crashes are reported, error description says App crashes on launch NSInvalidArgumentException - Frameworks/OneSignalInAppMessages.framework/OneSignalInAppMessages

Steps to reproduce?

None

What did you expect to happen?

App should open without crashing

OneSignal iOS SDK version

Release 5.1.5

iOS version

17, 16

Specific iOS version

No response

Relevant log output

Timestamp
June 25, 2024, 1:48am
Location
0x0000EA68 in app/Frameworks/OneSignalInAppMessages.framework/OneSignalInAppMessages
Exception
NSInvalidArgumentException
Message
*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]

Code of Conduct

nan-li commented 3 months ago

Hi @zxx0712 thank you for reporting, do you have the full stacktrace of the crash for this?

nan-li commented 3 months ago

This is a duplicate of https://github.com/OneSignal/OneSignal-iOS-SDK/issues/1453. Closing to track on that issue instead.