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

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

Open
vijayasekharreddyp opened this issue May 23, 2023 · 5 comments
Open

Comments

@vijayasekharreddyp
Copy link

vijayasekharreddyp commented May 23, 2023

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.

  • Specific to iOS Users :-
  • [Y] I have tried updating Razorpay pod to the latest version by using 'pod update'.

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

  • razorpay-pod (1.3.2)

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
Copy link

GeVic commented Jun 1, 2023

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

Device: Macbook Air m1
Xcode: 14.3

@rifad4u
Copy link

rifad4u commented Jun 2, 2023

@vijayasekharreddyp Change your xcode architecture to rosetta and check.

@vijayasekharreddyp
Copy link
Author

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

@rifad4u
Copy link

rifad4u commented Jun 6, 2023

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

On which chip your mac running?

@malikzype
Copy link

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

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

4 participants