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

RazorpayCheckout.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) #310

Closed hackrx closed 3 years ago

hackrx commented 3 years ago

Description

Ios build failed with an error:

CompileC /Users/hackrx/Library/Developer/Xcode/DerivedData/myapp-cmdzqollezpksnebxpzzqyfmgiqn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-razorpay.build/Objects-normal/x86_64/RazorpayCheckout.o /Volumes/removeDisk/myapp/node_modules/react-native-razorpay/ios/RazorpayCheckout.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Razorpay Package Version :

Open Package.json. > Copy react-native-razorpay 2.2.1.

Xcode Version (iOS) :

Open Xcode > Go to About Xcode > copy the Xcode: Version 12.1 (12A7403)

Razorpay-pod version (iOS) :

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

What you did:

yarn add react-native-razorpay cd ios && pod install yarn react-native run-ios

It is working fine on android.

Nautiyalsachin commented 3 years ago

Hey @hackrx, we have released a new package version v2.2.2. Please update to the latest version, it should fix the issue.

hackrx commented 3 years ago

Hey @Nautiyalsachin , after upgrading to 2.2.2 version I am getting this warning in console:

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: 
  - react-native-razorpay (to unlink run: "react-native unlink react-native-razorpay")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.

But it is working fine.

Nautiyalsachin commented 3 years ago

@hackrx Which react-native version are you using?

hackrx commented 3 years ago
    "react-native": "0.63.0",
    "react": "16.13.1",
    "react-native-razorpay": "^2.2.2",
Nautiyalsachin commented 3 years ago

Try removing the plugin and adding it again. @hackrx