Frequently Asked Questions

Following are the list of frequently asked questions while integrating our iOS SDK. If none of the below mentioned question resolves your problem, you can get in touch with us at https://razorpay.com/support for any queries.

I am getting an eror "Razorpay contains unsupported Architecture x86_64" while submiting the archive to the app store. What should I do?

When a framework is distributed, it contains architectures of the simulators so that the consumer of the framework can build it on a simulator. However, when you are uploading the archive on iTunes, you have to strip these architectures. If you would have been using cocoapods, it strips the simulator architectures on it's own. Since you are not using it, please follow the below mentioned steps:

  1. Download the script
  2. Locate the directory in which Razorpay.framework is present in the archive that you are trying to upload.
  3. Move the attached script in the above directory and run it.
  4. Remove the script file.

I am seeing a message on the screen to update my SDK. Will my customers also see the message?

No. You are seeing the update SDK alert because a newer version of our SDK is available. It is highly recommended that you always use the latest SDK. Be rest assured as you would see this message only when you are running the app on a simulator or using a test key to initialize the SDK.

I am getting an error Image not loaded: .dyld. What should I do ?

Please ensure that Razorpay.framework is present in both the Embedded Binaries and Linked Frameworks in your project settings. Also ensure that Always Embed Swift Libraries is set to "yes" in the project settings. Please note, this issue might also arise because of incompatibility of the Swift version with which Razorpay.framework is developed and the Swift version of your project. We highly recommend you to use the framework compiled with the required Swift language from our iOS documentation.

Razorpay's framework is bitcode enabled. Do I also have to enable bitcode in my project?

If you have or do not have bitcode enabled project, you can use our bitcode enabled framework. There will be no issue and our bitcode enabled framework will work for both the cases.

I am getting an error Module compiled with Swift X version cannot be imported in Swift Y version. What should I do?

There are multiple Swift versions available but unfortunately Apple does not make all the versions compatible with each other. This is why we release frameworks compiled in multiple Swift versions. Download the framework that is compatible with your project. If you run into a compatibility issue, ensure that you try both the frameworks.

I am getting an error saying "Could not find module RazorpayCommonCrypto".

To begin with, a module map is used to define the header files that should be converted into modules and used by your project. Razorpay handles this internally. The reason you are facing this issue is because we have made an assumption that your default Xcode's name is Xcode.app which might not be the case always, for example, your default Xcode might be named Xcode9.3.

To resolve this issue, simply insert this script in the directory that contains Razorpay.framework file and run it from your terminal and your good to go!