-
Notifications
You must be signed in to change notification settings - Fork 107
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
iOS Pay button does not work & Project does not build in xcode #50
Comments
Please check your project structure - the razorpay framework must be available in the ios directory and under razorpay's react native modules. Please refer to the example in this repo - https://github.com/razorpay/react-native-razorpay/tree/master/example/ios. |
I was facing the same issue.,. Did What you said.. Copied framework in ios directory. Now project was compiled but getting this error. dyld: Library not loaded: @rpath/Razorpay.framework/Razorpay |
Make sure the framework is added in both the Embeded Binaries and Linked Frameworks and Libraries under Target settings - General. |
It was not there in Embeded Binaries. Did that .. Still getting the same error. |
Check if you have added it in the target you are building. Make sure you Clean the project and rebuild it. If you still face the issue, email us at [email protected] and I will arrange a team viewer session for you to resolve the issue. As far as the issue is considered, it's not an error in the framework. |
It was working fine with the previous version. I upgraded npm package and now its almost a week that am unable to resolve razorpay issue. Earlier link was dead, then framework not found and now this :/ .. Please review and update documentation. Its my third app where I am using razorpay and no other node modules has given me more pain than this. Earlier Akshay was there . He helped in integrating this 1 year back. |
Cool .. Will mail you.. Thanks |
Xcode, debug show... dyld: Library not loaded: @rpath/Razorpay.framework/Razorpay I am facing this issue after removing node_modules and then execute npm install. |
@malangaveuday Make sure the framework is added in both the Embeded Binaries and Linked Frameworks and Libraries under Target settings - General and it shall work |
Hey I did but new error occurs dyld: Library not loaded: rpath/libswiftCore.dylib Referenced from: /private/var/containers/Bundle/Application/640C4207-D86E-47E8-BA06-37E16257179C/ios.app/Frameworks/Razorpay.framework/Razorpay Reason: image not found |
@Mayur-Wadpalliwar @AbhinavArora95 throwing same error for me too |
As mentioned in our docs - razorpay.com/docs/ios/, make sure the following is true,
|
It is working now. |
@AbhinavArora95 Thanks! Got it working :) |
Now I am facing |
When we build it and run it using react-native run-ios, the pay button does not open up the payment window.
When we build it in xcode, below error happens:
ld: framework not found Razorpay
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: