razorpay / razorpay-pod

:iphone: CocoaPod implementation of Razorpay's Payment SDK. Refer for instructions:
https://docs.razorpay.com/v1/page/ios-integration
MIT License
21 stars 18 forks source link

Module 'Razorpay' was created for incompatible target arm64-apple-ios10.0: /Users/tejasdubal/Documents/Paradise/paradise-latest/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule #121

Closed tejaskdubal closed 3 years ago

tejaskdubal commented 3 years ago

Getting this error when I import Razorpay Module 'Razorpay' was created for incompatible target arm64-apple-ios10.0: /Users/tejasdubal/Documents/Paradise/paradise-latest/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule

IDE Specs

Xcode - 12.4 Swift - 5 Razorpay Vrersion - 1.1.12

Retro Steps

  1. Import framework in swift file
  2. Compile code

Screenshots

Screenshot 2021-03-18 at 7 34 25 PM

Please help!

tejaskdubal commented 3 years ago

Sorry. but I don't have an issue with installation. I gone through that link already

Tried version 1.1.1 but no luck facing same issue.

mukeshydv commented 3 years ago

Getting same issue when trying to run on simulator on Apple M1 mac.

tejaskdubal commented 3 years ago

Got a solution Go to Build Setting -> Architectures -> Excluded Architectures -> Debug -> Add Any iOS Simulator -> Set value arm64 Do this for both Project Setting and Pod Setting

Hope this will help!

Nautiyalsachin commented 3 years ago

Hey @mukeshydv, I would also suggest you the same solution which is mentioned above by @tejaskdubal, as XCode 12 has released some extra settings. Let me know if the above solution works for you.

indupandey15 commented 3 years ago

Error:- The linked and embedded framework 'Razorpay.framework' is missing one or more architectures required by this target: arm64.
using custom Razorpay SDK, Xcode 12.4, Apple M1 mac. no luck any solution?

Nautiyalsachin commented 3 years ago

@indupandey15 You may need to add Rosetta 2 in your mac as there are some additional steps required. Are you trying to integrate razorpay react native customui SDK?

Nautiyalsachin commented 3 years ago

@indupandey15 You can also refer this thread for more details.

indupandey15 commented 3 years ago

@Nautiyalsachin we are using swift 5, Xcode 12.4 and razor pay runs on native iOS -> using Razorpay Custom UI 1.3.0.

indupandey15 commented 3 years ago

@indupandey15 You can also refer this thread for more details.

@Nautiyalsachin tried

  1. /usr/sbin/softwareupdate --install-rosetta
  2. https://developer.apple.com/forums/thread/666949

wasn't able to run, new error says "Building for iOS Simulator, but the linked and embedded framework 'Razorpay.framework' was built for iOS + iOS Simulator."

Please guide the complete steps

Nautiyalsachin commented 3 years ago

@indupandey15 Can you try now with this thread. Let me know if you still face issues.

indupandey15 commented 3 years ago

@indupandey15 Can you try now with this thread. Let me know if you still face issues.

@Nautiyalsachin above link did not work

  1. so now I tried shutting down my laptop -> opened my project again -> razor pay in embedded and libraries at position embed and signin
  2. Clean , removed derived data , run again
  3. Error "Module compiled with Swift 5.0.1 version cannot be imported in Swift 5.3.2 version."
  4. downloaded 5.1+ razor pay (upgraded my razorpay again after downgrading) Razorpay Custom UI 1.3.11
  5. Clean , removed derived data , run again -> SUCCESSFUL

very random dude but it worked for now..Not gonna be easy. thank you for your efforts :)

Nautiyalsachin commented 3 years ago

Glad it helped you solve this issue, closing it here. Thanks, feel free to add more comments or create a new issue if you face any.

sajanyamaha commented 2 years ago

This is happening again with latest pods and versions , module 'Razorpay' was created for incompatible target arm64-apple-ios10.0 check this https://github.com/razorpay/razorpay-flutter/issues/197

Nijinsha commented 2 years ago

Issue for me on m1 Mac. No idea why this is happening