launchdarkly / ios-client-sdk

LaunchDarkly Client-side SDK for iOS (Swift and Obj-C)
https://docs.launchdarkly.com/sdk/client-side/ios
Other
69 stars 84 forks source link

Xcode 12 variation error #225

Closed omerjanjua closed 3 years ago

omerjanjua commented 3 years ago

Describe the bug You get the below error when fetching a value for a variation let myBool = LDClient.get()?.variation(forKey: "myKey", defaultValue: true) ?? true Ambiguous use of 'variation(forKey:defaultValue:)'

To reproduce Upgrade to Xcode Version 12.0 (12A7209)

Expected behavior No warnings or errors should appear with Xcode 12

SDK version pod 'LaunchDarkly', '5.1.0'

OS/platform MacOS 10.15.6 (19G2021)