adaptyteam / AdaptySDK-Flutter

SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
88 stars 15 forks source link

Compilation error for Xcode before 14.3 #100

Closed johnmartel closed 5 months ago

johnmartel commented 6 months ago

Version:

pubspec.yaml adapty_flutter: 2.9.0

Podfile.lock

When running a fresh Flutter iOS build on CI, I get the following compilation error:

Failed to build iOS app Swift Compiler Error (Xcode): Reference to property 'apiKeyPrefix' in closure requires explicit use of 'self' to make capture > semantics explicit /Users/runner/work/.../ios/Pods/Adapty/Sources/StoreKit/SKProductsManager.swift:115:72

I'm running on this GitHub runner, so using XCode 14.2.

johnmartel commented 6 months ago

My currently working build uses adapty_flutter: 2.7.1.

x401om commented 6 months ago

Hi, @johnmartel! We had an issue in the native sdk which prevented to build with Xcodes prior to 14.3. It is already fixed and I suppose we will update the Adapty-Flutter pretty soon.

johnmartel commented 6 months ago

This explains why I do not see this issue locally with XCode 14.3. Thanks, we'll be looking forward to the released fix.

burhanrashid52 commented 5 months ago

@x401om When can we expect the new release with this fix ? Our iOS CI pipeline is stuck because of this issue.

x401om commented 5 months ago

Apologies for the wait, we've just released the new version 2.9.1, which includes fixes for this issue among others.

I also wanted to mention that Apple will soon stop supporting Xcode 14, and we're planning to drop support for it in one of our upcoming releases as well.