razorpay / react-native-razorpay

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

iOS Build Error - 'Razorpay/Razorpay-Swift.h' file not found #455

Open vijayasekharreddyp opened 1 year ago

vijayasekharreddyp commented 1 year ago

Description

Please provide a clear and concise description of what the bug is. Include screenshots if needed. Please test using the latest React Native Razorpay plugin release to make sure your issue has not already been fixed.

Razorpay Package Version :

Open Package.json. > Copy react-native-razorpay version here. "react-native-razorpay": "^2.3.0",

Xcode Version (iOS) :

Open Xcode > Go to About Xcode > copy the Xcode version here. Version 12.5 (12E262)

Razorpay-pod version (iOS) :

Go to your project path > Go to folder named ios > open 'podfile.lock' file > search for 'razorpay-pod' > copy the line here

Java and Gradle Version (android) :

Specify your Java and Gradle version.

What you did:

I tried to run Build from Xcode

What happened:

Got below error Lexical or Preprocessor Issue 'Razorpay/Razorpay-Swift.h' file not found RazorpayCheckout.m At line no 12

import <Razorpay/Razorpay-Swift.h>

ios build error

GeVic commented 1 year ago

I'm facing the same issue while using react-native-customui (2.2.3) @ShikharRazorPay

Device: Macbook Air m1 Xcode: 14.3

rifad4u commented 1 year ago

@vijayasekharreddyp Change your xcode architecture to rosetta and check.

vijayasekharreddyp commented 1 year ago

Latest version of Xcode on another Mac is not having this issue

rifad4u commented 1 year ago

Latest version of Xcode on another Mac is not having this issue

On which chip your mac running?

malikzype commented 3 weeks ago

I am running on Apple Mac Book Pro M3 and facing same issue. Have created a sample repo for the same my-project.zip

@rifad4u Can you please check once