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

'Razorpay/Razorpay-Swift.h' file not found #242

Closed
karthikmandava7 opened this issue Dec 27, 2019 · 11 comments
Closed

'Razorpay/Razorpay-Swift.h' file not found #242

karthikmandava7 opened this issue Dec 27, 2019 · 11 comments

Comments

@karthikmandava7
Copy link

karthikmandava7 commented Dec 27, 2019

Screen Shot 2019-12-27 at 11 39 26 AM
I'm trying to integrate React Native SDK for Custom UI, but it's not working as expected. Maybe I've done wrong in any place in the integration process, but I'm unable to find out exactly the issue. Can you please help.
Xcode - Version 11.2.1 (11B53)
"react": "16.9.0"
"react-native": "^0.60.0"

@Nautiyalsachin
Copy link
Contributor

Hi @karthikmandava7. We have released an upgraded version (i.e. 2.1.2). Can you please update and let me know your response.

@prataprish007
Copy link

i am getting same error in current version

@Nautiyalsachin
Copy link
Contributor

Nautiyalsachin commented Jan 22, 2020

@Nautiyalsachin
Copy link
Contributor

Closing this due to inactivity. You can always open the issue again.

@karanwadhwa
Copy link

I too am getting this issue in the latest version - 2.2.4 after upgrading from 2.1.23

node_modules/react-native-razorpay/ios/RazorpayCheckout.m:12:9: 'Razorpay/Razorpay-Swift.h' file not found

I manually linked it (without cocoapods) as instructed here

the only thing I did differently was that I also added the following to Header Search Paths
${SRCROOT}/../../../ios/Pods/Headers/Public
because without it, my build kept failing with this error

RazorpayCheckout.h:9:9: fatal error: 'RCTBridgeModule.h' file not found

@Nautiyalsachin
Copy link
Contributor

Hi @karanwadhwa, the Razorpay SDK inside our react native plugin is getting downloaded from cocoa pods and it has a pod dependency.

I would suggest you to use pod as it is recommended by us and by react-native latest versions. Currently our cocoapod plugin version is 1.1.12.

You can check the current pod versions inside podfile.lock. If it's not the latest then please update it.

If you still want to go without the pod then you have to add the latest razorpay SDK in your codebase, that you can download the latest SDK from here and try adding that into your project.

@PulkitAsri
Copy link

node_modules/react-native-razorpay/ios/RazorpayCheckout.m:12:9: 'Razorpay/Razorpay-Swift.h' file not found
@Nautiyalsachin I too am getting the same error, *mentioned above,
I have already tried doing it with and without CocoaPods,
But the build is still failing.
Not sure what to do, any suggestions?

Versions->

react => 16.13.1
react-native => 0.63.3
react-native-razorpay => ^2.2.8,
CocoaPods =>1.11.2
Platforms => iOS 14.5,
Xcode => 12.5.1/12E507

@ramprasadAnand
Copy link

ramprasadAnand commented Oct 8, 2021

Hi @PulkitAsri,

Can you please provide the razorpay-pod version?

@tabin-accessai
Copy link

I am facing the same error too. None of the solutions above work.
Followed this steps: https://github.com/razorpay/react-native-razorpay#manual
Please advice urgently, this is blocking our release.

Versions:
react => ^17.0.2
react-native => ^0.66.4
react-native-razorpay => ^2.3.0,
CocoaPods => 1.12.1
razorpay-pod (1.3.2)

Xcode => Version 13.2.1 (13C100)

@ramprasadAnand
Copy link

@tabin-accessai i would suggest to remove the Podfile.lock, Runner.xcworkspace, and Pods from your project's ios folder and run pod install. Do let us know if the error is still not resolved.

@tabin-accessai
Copy link

@tabin-accessai i would suggest to remove the Podfile.lock, Runner.xcworkspace, and Pods from your project's ios folder and run pod install. Do let us know if the error is still not resolved.

Thanks for replying, but the error still persists.

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

7 participants