skip to Main Content

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.

2

Answers


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

    Login or Signup to reply.
  2. Use this version in flutter_stripe 5.1.0
    I Solve this issue Flutter SDK version 2.10.5 & Dart SDK 2.16

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search