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

Latest iOS SDK has missing ExternalWalletSelectionProtocol.h #44

Closed
ProiOSDeveloper opened this issue Dec 27, 2017 · 7 comments
Closed

Comments

@ProiOSDeveloper
Copy link

ProiOSDeveloper commented Dec 27, 2017

As per your documentation when I replaced the existing framework in RazorpayCheckout.xcodeproj, it gives following error:
'Razorpay/ExternalWalletSelectionProtocol.h' file not found
I think the iOS SDK and react native project are not in sync. It would be great if you could provide link to last react-native-razorpay compatible framework.

@Mayur-Wadpalliwar
Copy link

@ProiOSDeveloper
Copy link
Author

@Mayur-Wadpalliwar Thanks for sharing the reference. But I think you were not able to get the exact issue. The problem is entirely related to the latest iOS framework. I think that the 'ExternalWalletSelectionProtocol' has been deprecated from iOS framework which required some sort of changes on react-native-razorpay module as well. And this updation has not yet been made. Anyways I was able to fix the issue by following the additional steps section using the razorpay framework contained in node_modules instead of downloading latest one.

@nitinbizsingh
Copy link

@ProiOSDeveloper You are absolutely spot on. We have migrated our SDK to Swift and the react wrapper has changed a bit. We highly recommend that you use the latest SDK.

We will be pushing an update to the react-native wrapper for our SDK (react-native-razorpay) soon. In the mean time you can use the latest SDK by replacing the following file in your local node_modules.

Replace the content of
node_modules/react-native-razorpay/ios/RazorpayCheckout.m

with the content available here:
https://github.com/razorpay/react-native-razorpay/blob/swift_wrapper/ios/RazorpayCheckout.m

Do let us know if you face any issues there.

@chaitu87
Copy link

@ProiOSDeveloper I've used the '.framework' from node_modules but the build failed with framework not found Razorpay. How did you manage to fix?

@singhnitin88 Replacing the content didn't help either. I might be missing some step, could you detail out the steps to fix this issue. Thanks.

@nitinbizsingh
Copy link

@chaitu87 Please ensure that you are following the steps listed here carefully:
https://github.com/razorpay/react-native-razorpay#additional-steps-for-linking-ios-sdk

@ProiOSDeveloper
Copy link
Author

@chaitu87 You will have to set the framework search path build setting to '../node_modules/react-native-razorpay/ios'

@Mayur-Wadpalliwar
Copy link

Fixed with the update

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

4 participants