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

Expression is 'async' but is not marked with 'await' #113

Open
AtrakhimovichDev opened this issue Feb 21, 2025 · 1 comment
Open

Expression is 'async' but is not marked with 'await' #113

AtrakhimovichDev opened this issue Feb 21, 2025 · 1 comment

Comments

@AtrakhimovichDev
Copy link

SDK version: 3.3.6
Xcode version: 16.2
Swift version: 6.0.3

I have 3 similar problems inside the Adapty.swift file associated with the Swift version.

#if compiler(>=5.10)
    let variationIdStorage = VariationIdStorage() // error here
#else
    let variationIdStorage = await VariationIdStorage()
#endif

I think it should be the other way around.

#if compiler(>=5.10)
    let variationIdStorage = await VariationIdStorage()
#else
    let variationIdStorage = VariationIdStorage()
#endif
@x401om
Copy link
Contributor

x401om commented Feb 24, 2025

Hi @AtrakhimovichDev! Could you please provide more details?

  • Are you using SPM or CocoaPods?
  • Which Swift version are you using for your project? (It may differ from the compiler version.)
  • Are you experiencing any issues building our Demo Apps? You can find them here.

There was a similar issue #106 that was resolved by manually applying Swift 6 mode to the Adapty SDK.

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

2 participants