Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pod install error #2

Open
eqlion opened this issue Mar 12, 2021 · 3 comments
Open

Pod install error #2

eqlion opened this issue Mar 12, 2021 · 3 comments

Comments

@eqlion
Copy link

eqlion commented Mar 12, 2021

I wanted to try this example, as I cannot make the library work in my project (see naoufal/react-native-payments#276). Following the steps, I get the error while trying to install Pods:

Auto-linking React Native module for target `stripeiOS`: react-native-payments
Analyzing dependencies
[!] The `react-native-payments` pod failed to validate due to 1 error:
    - ERROR | attributes: Missing required attribute `summary`.
@GFean
Copy link

GFean commented Mar 29, 2021

Having the same issue... any solutions ?

@eqlion
Copy link
Author

eqlion commented Mar 30, 2021

@RocKer004 unfortunately, no luck yet. However, in the original issue, there seems to be a solution, which involves commenting out braintree and stripe parts — naoufal/react-native-payments#276 (comment)

@Moistbobo
Copy link

Moistbobo commented Apr 21, 2021

fix: Bump react-native-payments in package.json to 0.8.2

See below for explanation.

In react-native-payments.podspec you'll see that the summary is mapped to the description field in package.json

pkg = JSON.parse(File.read("package.json")) <-- source

Pod::Spec.new do |s|
  s.name             = pkg["name"]
  s.version          = pkg["version"]
  s.summary       = pkg["description"] <--- here

However there is no description field in package.json, resulting in this issue.

Just add a description field to the package.json in node_modules/react-native-payments and use a package like patch package to persist the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants