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 issueDescription
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:
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.
npx react-native init Tresdo
npm i react-native-razorpay
cd ios && pod install
- Opened
Tresdo.xcworkspace
in Xcode, cleaned project, then build
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
Hi @abthkr, Can you try with a stable Xcode version, react-native is having some issue with XCode 12 (beta).