Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Build error on Xcode 12.5 #762

Closed
vittoriozzo opened this issue May 1, 2021 · 8 comments
Closed

Build error on Xcode 12.5 #762

vittoriozzo opened this issue May 1, 2021 · 8 comments

Comments

@vittoriozzo
Copy link

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

@renatomiguelsantos
Copy link

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'

@phithu
Copy link

phithu commented May 5, 2021

I upgraded Stripe to 21.4. But I can not build on Xcode 12.5

@minhas-tech
Copy link

minhas-tech commented May 6, 2021

After updating I encounter this error in STPImageLibrary.swift

Screenshot 2021-05-06 at 5 50 33 PM

@tuddman
Copy link

tuddman commented May 11, 2021

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.

@Savinvadim1312
Copy link

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.

Worked for me. Thanks

@zhahaoyu
Copy link

zhahaoyu commented May 18, 2021

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 react-native-community/upgrade-support#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

@usamaabutt
Copy link

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.

It works!!! Thanks a lot.

@fbartho
Copy link
Collaborator

fbartho commented Jun 20, 2023

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:

@fbartho fbartho closed this as completed Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants