Skip to content
Sachin Nautiyal edited this page Feb 5, 2020 · 6 revisions

This is a WIP FAQ for Razorpay | Frequently asked questions about the Razorpay Checkout

These FAQ's include usually faced integration problems of Razorpay.

FAQ

Question: What should you do if you see the following error?

dyld: Library not loaded: @rpath/libswiftCoreGraphics.dylib
  Referenced from: /private/var/mobile/Containers/Bundle/Application/696F0EAD-E2A6-4C83-876F-07E3D015D167/<Your_App>.app/Frameworks/<Framework_Name>.framework/<Framework_Name>
  Reason: image not found 

Answer:

  1. To workaround this issue, set the Embedded Content Contains Swift Code (EMBEDDED_CONTENT_CONTAINS_SWIFT) build setting to YES in your app.

For more info you can follow this link - https://developer.apple.com/library/archive/qa/qa1881/_index.html

  1. Ensure that you have the framework added in Frameworks, Libraries, and Embed Content under Target settings - General. Change Embed status from - 'Do not Embed' to 'Embed & Sign'.

CocoaPods: Verify that you have already installed CocoaPods.

Proguard Rules: Verify that you have already installed CocoaPods.

If you are using proguard for your builds, you need to add following lines to proguard files

-keepattributes *Annotation*
-dontwarn com.razorpay.**
-keep class com.razorpay.** {*;}
-optimizations !method/inlining/
-keepclasseswithmembers class * {
  public void onPayment*(...);
}

Question: How to integrate for 0.60 and above react-native versions?

or

Question: How to use Auto linking in react native?

Answer: refer this link - https://github.com/razorpay/react-native-razorpay#for-react-native-060

Question: How to integrate for 0.59 and below react-native versions?

Answer: refer this link - https://github.com/razorpay/react-native-razorpay#for-react-native-059-and-lower

Question: How to install react native through manual linking?

Answer: refer this link - https://github.com/razorpay/react-native-razorpay#manual

Follow this link if you want more FAQ's or if your issue is not reported here - https://razorpay.com/docs/payment-gateway/ios-integration/faq/

Clone this wiki locally