razorpay / react-native-razorpay

React Native wrapper for Razorpay's mobile SDKs
https://www.npmjs.com/package/react-native-razorpay
MIT License
124 stars 107 forks source link

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 abthkr closed 4 years ago

abthkr commented 4 years ago

Description

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

Razorpay Package Version :

2.1.36

Xcode Version (iOS) :

Version 12.0 beta 3 (12A8169g)

Razorpay-pod version (iOS) :

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 commented 4 years ago

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

abthkr commented 4 years ago

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

Thanks, that worked

Arun-paramasivam commented 3 years ago

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 commented 3 years ago

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

pm-sharma commented 3 years ago

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

sumedht commented 3 years ago

@Nautiyalsachin