Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #286

Closed
1 task done
abthkr opened this issue Aug 5, 2020 · 6 comments

Comments

@abthkr
Copy link

abthkr commented Aug 5, 2020

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
@Nautiyalsachin
Copy link
Contributor

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

@abthkr
Copy link
Author

abthkr commented Aug 5, 2020

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

Thanks, that worked

@abthkr abthkr closed this as completed Aug 5, 2020
@Arun-paramasivam
Copy link

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?

@withniyaz
Copy link

withniyaz commented Sep 18, 2020

Facing the same issue @Arun-paramasivam, Xcode in the stable version, but still facing the same issue, switching to 11.7 works

@pm-sharma
Copy link

Facing the same issue. Does anyone find the solution for Xcode 12?

@sumedht
Copy link
Contributor

sumedht commented Nov 6, 2020

@Nautiyalsachin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants