Search code examples
iosionic-frameworkcordova-pluginspayment-gatewayrazorpay

Using RazorPay SDK - clang: error: linker command failed with exit code 1 (use -v to see invocation)


I am using Cordova to build my iOS app. I have a plugin 'Razorpay-Cordova' which is giving the following error

enter image description here

Not sure why am I getting this error at the time of Build. Tried many solutions in internet, not able to solve.

PS: Project is running successfully in another MAC. I am facing issue in my machine.

Cordova Verison : 6.0

Ionic Version : 1.7

Xcode version 8.1.


Solution

  • You need to add the frameworks Security and CoreTelephony to your project.

    Just add them under your Target > Build Phases > Link Binary with Libraries. No need of any import statements.

    Disclaimer: I am a developer at Razorpay.