react-native-payments icon indicating copy to clipboard operation
react-native-payments copied to clipboard

ReactNativePayments` pod failed

Open vibdheeraj opened this issue 5 years ago • 12 comments

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].

vibdheeraj avatar Jul 23 '19 11:07 vibdheeraj

any fix for this issue?

I am facing the same issue

jeevankumarkanuganti avatar Jul 25 '19 08:07 jeevankumarkanuganti

@vibdheeraj Is this issue occurs while installing pods if yes can you please attach a screenshot for pod install output

AyushAppin avatar Jul 26 '19 12:07 AyushAppin

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 .

Screenshot 2019-07-26 at 8 40 20 PM Screenshot 2019-07-26 at 8 42 48 PM Screenshot 2019-07-26 at 8 42 57 PM

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 .

jeevankumarkanuganti avatar Jul 26 '19 15:07 jeevankumarkanuganti

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

yatishAgrawal avatar Jul 31 '19 06:07 yatishAgrawal

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 avatar Jul 31 '19 06:07 vibdheeraj

@vibdheeraj did you find the solution? I am stuck on it.

gamenic-arim avatar Aug 14 '19 10:08 gamenic-arim

@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 avatar Aug 14 '19 11:08 jeevankumarkanuganti

@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.

tyson90 avatar Dec 12 '19 11:12 tyson90

Guys, so when the fix will be applied for this library?

valeriik avatar Apr 12 '20 12:04 valeriik

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.

ElliDy avatar Sep 14 '20 06:09 ElliDy

Yep, seems very strange to need to do this - surely it's a bug?

andy-dorman avatar Nov 04 '20 13:11 andy-dorman

@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.

imuhammadnadeem avatar Jul 05 '23 05:07 imuhammadnadeem