Skip to content
Sachin Nautiyal edited this page Jun 1, 2021 · 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.

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 work around 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 the 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: Why I am not able to compile the plugin for release version but it works for debug mode?

or

Question: When trying to create a project archive, it's failing but the build works fine on the simulator.

Answer: To work around this issue set the Build Active Architecture Only to YES for both debug and release. You can find this option in your projects Build Settings.

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

Question: How to update existing 'razorpay-pod'?

Answer: Go to iOS folder in your project, run 'pod update' for updating all the pods, if you don't want to update all pods then run 'pod update razorpay-pod'

Question: What is the process for raising a request for a new feature?

Answer: If you think of a new feature that can add more values or if that should be included in our plugin, please raise a pull request or create a feature request from New Issue -> Feature Request.

Question: In the new M1 MacBook laptop I am not able to compile the React Native Razorpay plugin for release mode?

Answer: There are new changes introduced in Xcode 12, due to which you can see this issue in your build process.

  1. Use Rosetta 2 for launching the app on your Mac.

  2. Add these lines to Podfile -

post_install do |installer|
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  End

Click here for more details.

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/