Storekit crash on iOS 18.2

I got some crashes on firebase console Fatal Exception: NSInvalidArgumentException -[NSNull length]

the code stack show the StoreKit and the systems are all 18.2.

I haven't update to storekit2, but it shouldn't crash for storekit1.

Look like "applicationUserName" set to null will crash.

Wow, I had the same problem and setting applicationUserName worked for me. But I hope this issue can be fixed on the operating system side, otherwise my older version of the app will crash after upgrading to iOS 18.2.

The crash still happens on beta3. Apple should fix this for 18.2 before release. Cause this is a breaking change and relate to revenue, Apple should deal with it carefully.

I completely agree with your points. I've also encountered similar crashes on my Firebase console related to NSInvalidArgumentException -[NSNull length], specifically when using StoreKit on iOS 18.2. I haven't yet migrated to StoreKit 2 and expected that StoreKit 1 would continue to work reliably.

It’s frustrating to see this issue in a production environment, especially when the StoreKit API is crucial for in-app purchases. Apple engineers, could you please investigate this bug and provide a fix for StoreKit 1 compatibility on iOS 18.2? This would help developers ensure a smoother experience for users until a full migration to StoreKit 2 can be completed.

Thank you!

Storekit crash on iOS 18.2
 
 
Q