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

Unknown type name 'RazorpayCheckout' #323

Closed themanojk closed 3 years ago

themanojk commented 3 years ago

Razorpay Package Version : 2.2.4

Xcode Version (iOS) : 12.4

Razorpay-pod version (iOS) : 2.2.4

What happened:

When building the app through Xcode it is throwing error : Unknown type name 'RazorpayCheckout'; did you mean 'RNRazorpayCheckout'

Steps To Reproduce

  1. Intsall the package
  2. change the ios version in podfile to 10.0
  3. pod install
  4. Build the app

Screenshot Link for the same: https://ibb.co/7W1nkDz

Nautiyalsachin commented 3 years ago

Hi @themanojk, can you share a screenshot showing this issue. Thanks.

themanojk commented 3 years ago

@Nautiyalsachin i have added the screenshot link in the description..

Nautiyalsachin commented 3 years ago

Have you triedpod update from your ios folder?

themanojk commented 3 years ago

Yes i have... Pod version is already 2.2.4..

Nautiyalsachin commented 3 years ago

Can you try with XCode 12.3 or with any earlier XCode's?

Nautiyalsachin commented 3 years ago

I would also suggest you remove the plugin and also referencing this warning from official docs, you can also try the same.

If you previously installed a global react-native-cli package, please remove it as it may cause unexpected issues.

themanojk commented 3 years ago

Its working with 11.4 XCode version..

Nautiyalsachin commented 3 years ago

Closing the issue in that case, feel free to add more comments here.

niyatiArunk commented 3 years ago

Untitled

Check this image, i got this error, please let me know how to get it resolved using razorpay v2.2.5, Xcode v12.4, Works fine in Android only issue with Ios

sourav-singh-rawat commented 3 years ago

Did anyone found the solution for this?

@Nautiyalsachin

deepakverma4 commented 3 years ago

@Nautiyalsachin Everyone is not on 11.4 XCode version. So please suggest some global fix for this issue.

shivamvk commented 3 years ago

@Nautiyalsachin Why is this issue closed? I don't see downgrading to older version of Xcode as a solution to this. I need to fix this on the latest Xcode Version. Let me know if you can get on a call with me to resolve this.

devanshsadhotra25 commented 3 years ago

facing this issue even now, any solution for anyone?

ramprasadAnand commented 3 years ago

@devanshsadhotra25 are you facing this issue on Apple M1 chip MacBook ?

devanshsadhotra25 commented 3 years ago

@devanshsadhotra25 are you facing this issue on Apple M1 chip MacBook ?

@ramprasadAnand no, its an Intel one

ramprasadAnand commented 3 years ago

We are able to compile without any errors, with below versions.

"dependencies": { "@react-native-community/cli": "^5.0.1", "react": "17.0.1", "react-native": "0.64.2", "react-native-base64": "^0.2.1", "react-native-eject": "^0.1.2", "react-native-elements": "^3.4.2", "react-native-razorpay": "^2.2.7", "typescript": "^4.3.4" },

Can you try with the latest versions of react-native and razorpay libraries and let us know if you still face the errors ?