Tipsi-stripe: Build error on Xcode 12.5

Created on 1 May 2021  路  7Comments  路  Source: tipsi/tipsi-stripe

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

Most helpful comment

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 theStripe (~> 21.5.1)dependency were found, but they required a higher minimum deployment target.

All 7 comments

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

Screenshot 2021-05-06 at 5 50 33 PM

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 theStripe (~> 21.5.1)dependency were found, but they required a higher minimum deployment target.

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 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:

Screen Shot 2021-05-18 at 12 32 41 AM

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' 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 theStripe (~> 21.5.1)dependency were found, but they required a higher minimum deployment target.

It works!!! Thanks a lot.

Was this page helpful?
0 / 5 - 0 ratings