Troubleshooting & FAQs
Troubleshoot common error scenarios and find answers to frequently asked questions about Cordova Integration.
dyld: Library not loaded: @rpath/libswiftCoreGraphics.dylibReferenced 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
To fix the above error message:
- Set the
Embedded Content Contains Swift Code (EMBEDDED_CONTENT_CONTAINS_SWIFT)
build setting toYES
in your app. To know more, refer to . - Ensure that you have the framework added in
Frameworks, Libraries, and Embed Content
underTarget settings
-General
. Ensure theEmbed status
is set to 'Embed & Sign'.
No, we do not support Capacitor in our plugin as it has its own
.Order creation is the primary step of the Razorpay payment flow. When a customer clicks the pay button on your app, an Order is created and a corresponding order_id is generated in the response. This order_id must be passed to the Razorpay Checkout options added in your Capacitor app. Know more about
.To raise a request for a new feature, navigate to New Issue → Feature Request on our
.- Go to your project's iOS folder and run 'pod update' to update all the pods.
- If you do not want to update all pods, run 'pod update razorpay-pod'.
6. In the new M1 MacBook, why am I not able to compile the Cordova Razorpay plugin for release mode?
This is because of the new changes introduced in Xcode 12.
To resolve this:
- Use for launching the app on your Mac.
- Add the following lines to Podfile:
Handy Tips
Add the following code inside post_install do |installer|
.
installer.pods_project.build_configurations.each do |config|config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"end
Know more about
.To check the SDK version:
- Open your Cordova project in your preferred code editor.
- Navigate to the
config.xml
file in the root directory of your project. - Look for the
<plugin>
tag that includes the Razorpay SDK plugin. The version number is represented byx.y.z
.
To check the SDK version:
- Open your Ionic project in your preferred code editor.
- Open the
package.json
file in the root directory of your project. - In the
dependencies
section, look for the Razorpay entry. The version number is specified next to the package name in the formatx.y.z
.
To update the SDK version using npm, follow these steps:
- Open the terminal or command prompt and navigate to your project directory where the
package.json
file resides. - Use the npm update command followed by the package name to update a specific package to its latest version. For example, npm update
<razorpay_package_name>
(replace<razorpay_package_name>
with the name of the package you want to update). - If you are using a Cordova iOS application, run
cd platforms && cd ios && pod repo update && pod update
to ensure the internal iOS dependencies are updated to the versions set by the Razorpay package. This is because cocoapods may not automatically update the internal trunk spec to fetch the latest versions. - After running the update command, review the updates fetched by npm to ensure they do not introduce any breaking changes.
- Conduct thorough testing to ensure that the updated packages do not adversely affect the application functionality and commit the changes.
Is this integration guide useful?
ON THIS PAGE