question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to build project with react-native-razorpay in iOS, 'RazorpayCheckout' has different definitions in different modules; first difference is defined here found 1 referenced protocol

See original GitHub issue

Description

Project does not build in iOS with react-native-razorpay

  • Specific to iOS Users :-
  • I have tried updating Razorpay pod to the latest version by using ‘pod update’.

Razorpay Package Version :

2.1.36

Xcode Version (iOS) :

Version 12.0 beta 3 (12A8169g)

Razorpay-pod version (iOS) :

  • razorpay-pod (1.1.6)

What you did:

I created a fresh new project, which ran successfully and then performed npm i react-native-razorpay, and pod install in ios folder.

What happened:

Screenshot 2020-08-05 at 12 27 35 PM

I did not install any dependency apart from react-native-razorpay, it just fails in XCode during build phase, producing this error:

‘RazorpayCheckout’ has different definitions in different modules; first difference is defined here found 1 referenced protocol

which points to RazorpayCheckout.h

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. npx react-native init Tresdo
  2. npm i react-native-razorpay
  3. cd ios && pod install
  4. Opened Tresdo.xcworkspace in Xcode, cleaned project, then build

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Arun-paramasivamcommented, Sep 17, 2020

Hi, I am using Xcode 12.0 stable version(updated today). I face the same issue. Tried clearing cache and building and quitting Xcode but none worked. It was working on the 11.7 version of the Xcode. How to resolve it?

1reaction
Nautiyalsachincommented, Aug 5, 2020

Hi @abthkr, Can you try with a stable Xcode version, react-native is having some issue with XCode 12 (beta).

Read more comments on GitHub >

github_iconTop Results From Across the Web

'RazorpayCheckout' has different definitions in ... - GitHub
'RazorpayCheckout' has different definitions in different modules; first difference is defined here found 1 referenced protocol #292.
Read more >
Xcode 12 different definitions in … | Apple Developer Forums
'Thing' has different definitions in different modules; first difference is definition in module 'FrameworkOne.Swift' found method name 'doSomething'.
Read more >
XCode 12: 'SessionDelegate' has different definitions in ...
The error is saying that you have multiple classes with the same name SessionDelegate in different modules. This error is related to Xcode ......
Read more >
first difference is defined here found 1 referenced protocol
'RazorpayCheckout' has different definitions in different modules; first difference is defined here found 1 referenced protocol.
Read more >
react-native-razorpay - npm
Start using react-native-razorpay in your project by running `npm i react-native-razorpay`. There are 34 other projects in the npm registry ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found