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

'RazorpayCheckout' has different definitions in different modules #308

Closed kharsuanoop closed 3 years ago

kharsuanoop commented 3 years ago

Razorpay Package Version - 2.2.1

Xcode Version - 12.2

React Native - 0.61.5

error comes when building iOS app ( /Users/userName/Desktop/app/node_modules/react-native-razorpay/ios/RazorpayCheckout.h:11:12: 'RazorpayCheckout' has different definitions in different modules; first difference is defined here found 1 referenced protocol )

Untitled

Nautiyalsachin commented 3 years ago

Hi @kharsuanoop, this is a repeated issue of https://github.com/razorpay/react-native-razorpay/issues/292, Please find the workaround mentioned there, we are also releasing a new version soon. Thanks.

musadiq123 commented 3 years ago

I wasted 2 days for this issue in Xcode 12.4. finally resolved by this link. check out https://github.com/razorpay/react-native-razorpay/pull/297/files/ea490ff7669c629010a74f41de6c4d61a74c1c05

sachin-blinkdigital commented 2 years ago

I wasted 2 days for this issue in Xcode 12.4. finally resolved by this link. check out https://github.com/razorpay/react-native-razorpay/pull/297/files/ea490ff7669c629010a74f41de6c4d61a74c1c05

Thanks for saving my day. It works.