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
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:
P.S: Using Xcode 14.0 (Beta) as I need to develop for iOS 16 as well.
2
Answers
Upgrading to the latest
@stripe/stripe-react-native
did the trick for me.Use this version in
flutter_stripe 5.1.0
I Solve this issue
Flutter SDK version 2.10.5
&Dart SDK 2.16