question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[expo-payments-stripe] Stripe pod does not compile on Xcode 11.4

See original GitHub issue

šŸ› Bug Report

Environment

I’ve installed expo-payments-stripe on a bare React Native setup with react-native-unimodules set up and configured.

I encounter an error when building for iOS as outlined in this Stripe Issue: https://github.com/stripe/stripe-ios/issues/1525

Steps to Reproduce

  1. Install the latest version of expo-payments-stripe (e.g., yarn add expo-payments-stripe)
  2. Navigate to the ios folder and run pod install - you’ll notice that version 13.2.0 of the Stripe SDK pod is installed.
  3. Try to build the app (e.g., yarn start)

Expected Behavior

The project should build without any errors.

Actual Behavior

The project returns a compiler error as outlined in the Stripe issue I mentioned above:

Incompatible block pointer types sending '__strong STPAPIResponseBlock _Nonnull' (aka 'void (^__strong)(ResponseType _Nullable __strong, NSHTTPURLResponse * _Nullable __strong, NSError * _Nullable __strong)') to parameter of type 'void (^ _Nonnull)(STPSource * _Nullable __strong, NSHTTPURLResponse * _Nullable __strong, NSError * _Nullable __strong)'

Reproducible Demo

I’m going to skip this step because I feel it’s unnecessary in this particular case. The issue is not with the project and does not need to be troubleshooted. It’s simply relying on an outdated dependency that needs to be fixed.

It seems that the next supported version on Stripe is version 14.0.1 which is just one version removed from the current one. I’ve found Stripe’s changelog for that update here.

I’ve also manually changed this line in the plugin to: s.dependency 'Stripe', '~> 14.0.1' and confirmed that the issue goes away.

Unfortunately I’m just getting started with the package and can’t test whether this has broken any existing functionality yet. Ideally someone with more familiarity with the package could review the few items in the changelog and confirm that it’s ok.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
sjchmielacommented, Jun 1, 2020

Hey all, I just published expo-payments-stripe@8.2.2 which includes Stripe at ~> 14.0.1 by default — this should get rid of that nasty problem. Thank you for your patience!

1reaction
jSkrillscommented, Jun 12, 2020

I can confirm this, it’s even working with xcode 11.5. Thanks so much for your time on this @sjchmiela

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stripe pod does not compile on Xcode 11.4 Ā· Issue #1525
Summary. After just recently updating to the new Xcode 11.4 I am unable to build my project withe Stripe SDK pod. Compiler error...
Read more >
Error in Stripe Pod | Apple Developer Forums
Xcode noob here. I'm getting the below error when I try to build and run. The code appears as: Line of code is:...
Read more >
expo-gl-cpp | Yarn - Package Manager
This is the log of notable changes to the Expo client that are developer-facing. Package-specific changes not released in any SDK will be...
Read more >
Stripe iOS SDK
The Stripe iOS SDK helps you build customizable payments into your iOS app. We provide powerful and customizable UI screens and elements that...
Read more >
Stripe SDK won't let me build - "Signing for 'StripeCore ...
I've got the same issue when change to build with Xcode 14. A path on Podfile below should help me resolved the issue....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found