Closed alexeyz-PE closed 5 years ago
@SainiJii what is the path of ReactNativePayments.podspec file?
@SainiJii I try that, but still the same issue. I see a few people have succeed, do you think is applicable in version 0.8.2? This is my changes
require 'json'
pkg = JSON.parse(File.read("package.json"))
version = pkg["version"]
giturl = pkg["repository"]["url"]
Pod::Spec.new do |s|
s.name = pkg["name"]
s.version = pkg["version"]
s.summary = pkg["description"]
s.requires_arc = true
s.license = pkg["license"]
s.homepage = pkg["homepage"]
s.author = pkg["author"]
s.source = { :git => pkg["repository"]["url"] }
s.source_files = 'lib/ios/*.{h,m}'
s.platform = :ios, "8.0"
s.requires_arc = true
s.dependency 'React'
s.dependency 'Stripe'
s.dependency 'Braintree'
end
Hello @alexeyz-PE , I was facing the same issue. I did one thing to solve this issue, I know that's not the correct and good programming practice but solved my issue: I just copied and paste following files from "node_modules/react-native-payments/lib/ios/" to my project folder in xcode:
GatewayManager.h GatewayManager.m ReactNativePayments.h ReactNativePayments.m and Complete "Views" Folder
See screenshots below:
Edit: I think, I got the proper solution. Actually there is a problem with "ReactNativePayments.podspec" file, follow the below steps:
Please let me know if those solution help you.
Thanks Alankar Saini