Build error on Xcode 12.5
Error: 'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
Since xCode has been updated to 12.5 it returns this problem. How to solve? thank you
I faced the same issue but was able to solve it by upgrading tipsi-stripe to 9.0.0 and updating the Stripe version in Podfile with:
pod 'Stripe', '~> 21.4'
I upgraded Stripe to 21.4. But I can not build on Xcode 12.5
After updating I encounter this error in STPImageLibrary.swift
updating to pod 'Stripe', '~> 21.5.1' and platform :ios, '12.0' in the Podfile
and updatingtipsi-stripe to 9.0.0 in package.json
fixes/works around the issue in XCode 12.5
annoying to also have to update the minimum supported version (10 -> 12) on a minor Pod update to avoid:
Specs satisfying the Stripe (~> 21.5.1) dependency were found, but they required a higher minimum deployment target.
updating to
pod 'Stripe', '~> 21.5.1'andplatform :ios, '12.0'in thePodfileand updating
tipsi-stripeto9.0.0inpackage.jsonfixes/works around the issue in XCode 12.5
annoying to also have to update the minimum supported version (
10->12) on aminorPod update to avoid:
Specs satisfying theStripe (~> 21.5.1)dependency were found, but they required a higher minimum deployment target.
Worked for me. Thanks
I tried to upgrade the dependencies as suggested above, but got the following build errors:

I solved it by following https://github.com/react-native-community/upgrade-support/issues/62
Specifically, what I did were
Removed all entries from LIBRARY_SEARCH_PATHS in the Project configuration Add a new Swift file to the project (File > New > File > Swift), and call it whatever you want
Update - I got it working for debug build, but now archive fails. Still looking for solutions
updating to
pod 'Stripe', '~> 21.5.1'andplatform :ios, '12.0'in thePodfileand updating
tipsi-stripeto9.0.0inpackage.jsonfixes/works around the issue in XCode 12.5
annoying to also have to update the minimum supported version (
10->12) on aminorPod update to avoid:
Specs satisfying theStripe (~> 21.5.1)dependency were found, but they required a higher minimum deployment target.
It works!!! Thanks a lot.
Closing this ticket, so that new users don't think this project is still active.
Stripe does not want you using this, and you will find pain if you do; Please migrate to the official @stripe/stripe-react-native package, for your user's safety, and your developer's sanity!
See more:
- https://github.com/tipsi/tipsi-stripe/issues/779
- https://github.com/tipsi/tipsi-stripe/issues/842