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

React Native Custom UI - framework not found Razorpay #319

Closed sathishkrishnan20 closed 3 years ago

sathishkrishnan20 commented 3 years ago

Getting "framework not found Razorpay" error. while integrating React-native-customui

Steps followed

  1. Added the Razropay.xcodeproj into Project Libraries
  2. Added libRazorPay.a into Frameworks, Libraries and Embeded Content
  3. Added RazorPay.framework into Frameworks, Libraries and Embeded Content
  4. Added $(SRCROOT)/../react-native/React and $(SRCROOT)/../../React into Header Search Path
Nautiyalsachin commented 3 years ago

Hey @sathishkrishnan20, can you share the details here like Xcode Version, SDK version, Swift version, etc.

sathishkrishnan20 commented 3 years ago

Hi @Nautiyalsachin , thanks for the response, and sharing the details here Xcode Version: 11.4 Swift Version: 5 SDK: iphoneos13.7

Nautiyalsachin commented 3 years ago

@sathishkrishnan20 Can you try downloading this SDK and replace existing one. Please follow above steps again.

sathishkrishnan20 commented 3 years ago

Can you give me the steps to Replace this SDK? i see two or three foldrs when i exctract the Zip

Nautiyalsachin commented 3 years ago

You have to replace the whole .xcframework with .framework in your code. Just search for Razorpay.framework and replace it with Razorpay.xcframework file. All the process and steps will be the same.

sathishkrishnan20 commented 3 years ago

Getting Below Error after replacing the Razorpay.xcframework file. Undefined symbol: _OBJCCLASS$__TtC8Razorpay8Razorpay

Even getting the same for New Application

Archive.zip

sathishkrishnan20 commented 3 years ago

It is failing for Android as well

Getting Below Error on Android

 Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find :razorpay-android:.
     Required by:
         project :app > project :react-native-customui
Nautiyalsachin commented 3 years ago

@sathishkrishnan20 Please wait for some days, I'll be updating the existing plugin so that you don't face these issues.

sathishkrishnan20 commented 3 years ago

thanks, please try adding the auto Linking podspec file if possible. so that we can avoid the Manual linking process. and it helps for long run

Nautiyalsachin commented 3 years ago

We are thinking about it, we will be releasing a pod for Razorpay Custom UI. Will update you on the same here. For now, closing this issue.

CHANDRAMOHANnegi commented 3 years ago

use this Doc https://razorpay.com/docs/payment-gateway/react-native-integration/custom/