launchdarkly / react-native-client-sdk

LaunchDarkly Client-side SDK for React Native
Other
47 stars 32 forks source link

v8.0.0 crashes on startup - iOS #234

Closed mfelix5 closed 1 year ago

mfelix5 commented 1 year ago

Describe the bug Updating the ld sdk from v7.1.4 to v8.0.0 causes the app to crash on startup. This happens when trying to configure a new LDClient with a very basic config (just the mobileKey) and context (just a key). LDClient.configure(config, context) works as expected with v7.1.4 and works as expected on Android using v8.0.0. Specifying a timeout or changing the context type doesn't appear to affect the issue.

Logs

Screenshot 2023-09-08 at 8 18 58 AM

SDK version v8.0.0

Language version, developer tools React Native v0.71.7

OS/platform iOS

louis-launchdarkly commented 1 year ago

Hello @ mfelix5, could you provide us a snippet of your start-up code, especially with the context? We suspected the removal of the deprecated LDUser which we documented here is what is causing the issue, and we will look into updating the documentation to explain that better.

mfelix5 commented 1 year ago

Thanks for pointing out this documentation. I did not see it previously and I'm sure that is the problem.