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
[BUG] Build errors on Xcode 14 beta 1 #1973
Comments
Quick hotfix, to get rid of the error is to remove casting to
Dunno how its gonna impact the whole |
Thanks for filing this! There are a few issues with compiling on Xcode 14 — we'll try to have a branch up soon. |
Thanks so much, we are refreshing constantly waiting ahaha! Good luck 👍 |
Thanks for being so quick on this! |
thank you! |
Here's the branch: https://github.com/stripe/stripe-ios/tree/xcode-14-b1 We haven't had a chance to try everything yet — please don't release any builds using this branch to the App Store. We'll merge in these changes before the next minor SDK release. |
These changes landed in 22.5.0, so I'll close this out. FYI, if you're running into similar issues in your own projects and need to support multiple Xcode versions, you can use the |
I am still seeing this issue on 22.7.0 with Xcode 14 Beta 5 |
[Update] |
Im having this issue with Xcode 14.0.1. Fixed it using the fix mentioned previously @gutaker |
Downgrading XCode to 13.4.1 solved it for me |
I am using Xcode Version 14.2 (14C18) , Expo SDK 45, but nothing works 😞 |
Having trouble too on Xcode v14.2! Maybe this should be re opened? |
For users using Expo, are you on the latest version of the SDK? You may need to run |
Same here. With Flutter |
Using xcode 14.2 (14C18), Expo 45, stripe-react-native 0.6.1, we bumped into this issue and tried to fix it by: #1973 (comment) while it fixed that specific error but encountered
changed those 2 parts of the code by creating a wrapper property, e.g. for
then in
I don't know the full impact of the changes above, but as far as our app is concerned it's working no problem. |
Thanks a lot! |
please what file am i use this code. Ive been battling this since this morning. Kindly help! |
@folusara Method: _delegateToAppleDelegateMapping() |
Summary
Xcode 14 beta 1 presents a build error in STPApplePayContext.swift l:240
'(any PKPaymentAuthorizationControllerDelegate) -> ((PKPaymentAuthorizationController, PKShippingMethod, @escaping (PKPaymentRequestShippingMethodUpdate) -> Void) -> Void)?' is not convertible to 'pkDidSelectShippingMethodSignature' (aka 'Optional<((PKPaymentAuthorizationControllerDelegate) -> (PKPaymentAuthorizationController, PKShippingMethod, @escaping (PKPaymentRequestShippingMethodUpdate) -> ()) -> ())>')
Code to reproduce
N/A
iOS version
N/A
Installation method
SPM
SDK version
22.4.0
Other information
The text was updated successfully, but these errors were encountered: