react-native-payments
react-native-payments copied to clipboard
ReactNativePayments` pod failed
Need help to resolve this issue. @barbieri @Andreyco @miracle2k @zibs project configuration: `{ "name": "PaymentDemo", "version": "0.0.1", "private": true, "scripts": { "start": "react-native start", "test": "jest", "lint": "eslint ." },
"dependencies": { "react": "16.8.6", "react-native": "0.60.4", "react-native-payments": "^0.7.1", "react-native-version-number": "^0.3.6" },
"devDependencies": { "@babel/core": "7.5.5", "@babel/runtime": "7.5.5", "@react-native-community/eslint-config": "0.0.3", "babel-jest": "24.8.0", "eslint": "^6.1.0", "eslint-plugin-react": "^7.14.3", "eslint-plugin-react-native": "^3.7.0", "jest": "24.8.0", "metro-react-native-babel-preset": "0.54.1", "react-test-renderer": "16.8.6" }, "jest": { "preset": "react-native" } } `
The ReactNativePayments
pod failed to validate due to 1 error:
- ERROR | [iOS] attributes: Unacceptable type Hash
for homepage
. Allowed values: [String]
.
any fix for this issue?
I am facing the same issue
@vibdheeraj Is this issue occurs while installing pods if yes can you please attach a screenshot for pod install output
Yes , issue occurs while installing pods
pod 'ReactNativePayments', :path => '../node_modules/react-native-payments'
above code is in my podfile.
Attaching image of pod install output and node folder structure installed in my project .



Thanks,
Jeevan Kumar Kanuganti
On Fri, Jul 26, 2019 at 6:14 PM AyushAppin [email protected] wrote:
@vibdheeraj https://github.com/vibdheeraj Is this issue occurs while installing pods if yes can you please attach a screenshot for pod install output
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/naoufal/react-native-payments/issues/163?email_source=notifications&email_token=AHQWT6EWWVEII7P3KAF3GOLQBLWSDA5CNFSM4IGDFIAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24O4QA#issuecomment-515436096, or mute the thread https://github.com/notifications/unsubscribe-auth/AHQWT6E7F2KDDL2ATFYLLYDQBLWSDANCNFSM4IGDFIAA .
I solved this issue by changing into the ReactNativePayments.podspec file:
s.homepage = giturl => s.homepage = "giturl"
Path=> node_modules->react-native-payments->ReactNativePayments.podspec
please share the pod file screenshot, because i am getting where to put this ReactNativePayments.podspec file:
s.homepage = giturl => s.homepage = "giturl" Best Regards, Dheeraj Singh
Sr. Mobile Application Developer p: +91-172-5095001 a: F-264, Phase 8B, Airport Road, Mohali, PB 160062 , INDIA w: www.vibhuti.biz e: dheeraj@vibhuti.biz [email protected] https://www.facebook.com/1Vibhuti/ https://twitter.com/1vibhuti_ https://www.linkedin.com/company/vibhuti-technologies
On Wed, 31 Jul 2019 at 11:38, yatishAgrawal [email protected] wrote:
I solved this issue by changing into the ReactNativePayments.podspec file:
s.homepage = giturl => s.homepage = "giturl"
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/naoufal/react-native-payments/issues/163?email_source=notifications&email_token=AMWBEU2A7SWR4WRDWQFROM3QCET5JA5CNFSM4IGDFIAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3GF77Q#issuecomment-516710398, or mute the thread https://github.com/notifications/unsubscribe-auth/AMWBEUYKYGCPFXSA4URUNGTQCET5JANCNFSM4IGDFIAA .
@vibdheeraj did you find the solution? I am stuck on it.
@yatishAgrawal solution works for me.
@vibdheeraj - open "ReactNativePayments.podspec" file
You will see s.homepage = giturl => s.homepage = giturl
change that giturl to string as below
s.homepage = giturl => s.homepage = "giturl"
@jeevankumarkanuganti The right solution is replacing in line 5:
from:
giturl = package["repository"]
to:
giturl = package["repository"]["url"]
See the package.json file to understand why.
Guys, so when the fix will be applied for this library?
When will the pull request https://github.com/ozberkctn/reactNativePayments/compare/master...emirsavran:fix/autolink be merged? It would be nice, if this will be released soon, as it is it not nice to change it manually.
Yep, seems very strange to need to do this - surely it's a bug?
@jeevankumarkanuganti The right solution is replacing in line 5:
from:
giturl = package["repository"]
to:
giturl = package["repository"]["url"]
See the package.json file to understand why.
I change
from s.source = { :git => pkg["repository"] }
to s.source = { :git => pkg["repository"]["url"] }
and it worked.