Error building iOS App (Flutter), Android runs smooth. STRIPEAPPLEPAY pod error

Viewed 172

I am facing this issue:

Swift Compiler Error (Xcode): '(any PKPaymentAuthorizationControllerDelegate) -> ((PKPaymentAuthorizationController, PKShippingMethod, @escaping (PKPaymentRequestShippingMethodUpdate) -> Void) -> Void)?' is not convertible to 'pkDidSelectShippingMethodSignature' (aka 'Optional<((PKPaymentAuthorizationControllerDelegate) -> (PKPaymentAuthorizationController, PKShippingMethod, @escaping (PKPaymentRequestShippingMethodUpdate) -> ()) -> ())>') /Users/apple/Desktop/Cool%20Panda%20Apps/provider_flutter/ios/Pods/StripeApplePay/StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift:239:53

Screenshot of Error Message

Deleted PODfile.lock and Pods folder millions of times and installed pods again. Still no luck, same error.

Here is the screenshot of the PODFILE:

PODFILE SCREENSHOT

P.S: Using Xcode 14.0 (Beta) as I need to develop for iOS 16 as well.

1 Answers

Upgrading to the latest @stripe/stripe-react-native did the trick for me.

Related