Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 12 variation error #225

Closed
omerjanjua opened this issue Sep 17, 2020 · 0 comments
Closed

Xcode 12 variation error #225

omerjanjua opened this issue Sep 17, 2020 · 0 comments

Comments

@omerjanjua
Copy link

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)

keelerm84 added a commit that referenced this issue Dec 7, 2022
To help ease the upgrade path, we are going to allow consumers of the
SDK to continue providing LDUser objects to key methods in the LDClient
instead of the newer LDContext type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant