stripe-react-native
stripe-react-native copied to clipboard
Build Failure for latest package version - Xcode 14.2
Describe the bug Minimum Xcode version according to the README is 14.1, but when building with xCode, you get the error: "Missing return in getter expected to return 'String'" discussed here
To Reproduce Steps to reproduce the behavior:
yarn add @stripe/stripe-react-nativecd ios/andpod install- Try building in Xcode
Expected behavior Build Success
Screenshots
Desktop (please complete the following information):
- OS: MacOS
By upgrading to Xcode 15.4, this problem is fixed. Since Stripe IOS requires Xcode 15 or later, too, the README really should be updated.
I'm using an iMac 2017. It is impossible to upgrade Xcode to 15.4 :(
manually add return in every case like:
switch self { case .invalidRequest: return "invalidRequest" case .apiError(let stripeAPIError): return stripeAPIError.code ?? "" }
it shows same error for almost 5 - 6 files. keep adding return in them. It works for me. My xcode version is 14.3.1