razorpay / react-native-razorpay

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

Unable to build react native customUi after xcode update to 14.3 #448

Closed rifad4u closed 1 year ago

rifad4u commented 1 year ago

Description

Getting "Unsupported Swift architecture" and "Could not build module Razorpay" error messages after xcode update to 14.3.

Razorpay Package Version :

"react-native-customui": "^2.2.3",

Xcode Version (iOS) :

14.3

Razorpay-pod version (iOS) :

2.0.3

Java and Gradle Version (android) :

Specify your Java and Gradle version.

What you did:

Updated macOS to 13.3 and xcode 14.3

What happened:

Getting "Unsupported Swift architecture" and "Could not build module Razorpay" error messages.

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Just build the project

Suggested solution:

Code example, screenshot, or link to a repository:

Screenshot 2023-04-03 at 12 02 39 PM Screenshot 2023-04-03 at 12 24 37 PM
GeVic commented 1 year ago

@rifad4u were to able to resolve this? I'm facing the same issue.

rifad4u commented 1 year ago

@rifad4u were to able to resolve this? I'm facing the same issue.

You can build your application if you change architecture to rosetta instead of apple silicon architecture. Anyway react native razopay team to update the package inorder to support apple silicon architecture.

chzappsinc commented 1 year ago

for me its working, Installed cocapods vai arch -x86_64 pod install

pratikdonda commented 1 year ago

Getting same error after updating Xcode 15

Can anybody help me???

ramprasadAnand commented 1 year ago

@pratikdonda add the below post installer script to resolve the problem.

installer.pods_project.build_configurations.each do |config|
  config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
pratikdonda commented 1 year ago

@ramprasadAnand added but not working

rifad4u commented 1 year ago

@ramprasadAnand added but not working

Xcode --> Product -- > Destination --> Destination Architectures -- > Show Rosetta Destinations , Then do build and check.

pratikdonda commented 1 year ago

@ramprasadAnand Thanks for your quick replay, Appreciate..