tipsi-stripe icon indicating copy to clipboard operation
tipsi-stripe copied to clipboard

Build error on Xcode 12.5

Open vittoriozzo opened this issue 4 years ago • 7 comments

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

vittoriozzo avatar May 01 '21 09:05 vittoriozzo

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'

renatomiguelsantos avatar May 02 '21 12:05 renatomiguelsantos

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

phithu avatar May 05 '21 11:05 phithu

After updating I encounter this error in STPImageLibrary.swift

Screenshot 2021-05-06 at 5 50 33 PM

minhas-tech avatar May 06 '21 12:05 minhas-tech

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.

tuddman avatar May 11 '21 05:05 tuddman

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

VadimNotJustDev avatar May 12 '21 09:05 VadimNotJustDev

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

zhahaoyu avatar May 18 '21 07:05 zhahaoyu

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.

usamaabutt avatar Jun 16 '21 10:06 usamaabutt

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

fbartho avatar Jun 20 '23 20:06 fbartho