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

Failed to build module 'Razorpay' from its module interface #109

Closed akshaybhange closed 3 years ago

akshaybhange commented 3 years ago

Description

Build failed with the following errors: failed to build module 'Razorpay' from its module interface; the compiler that produced it, 'Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)' and <unknown>:0: error: unable to load standard library for target 'arm64-apple-ios10.0'

Razorpay pod Version :

pod 'razorpay-pod', '1.1.7'

Xcode Version :

Version 12.0.1 (12A7300)

What you did:

I was working on our code which was earlier build on xcode 10 and razorpay pod was 1.1.1. With xcode 12 it was failing so I updated rayzorpay-pod 1.1.7

followed instruction given in the documentation changed var razorpay: Razorpay! to var razorpay: RazorpayCheckout! and initWithKey function as well

What happened:

Screenshot 2020-10-09 at 9 06 15 PM
ankit0812 commented 3 years ago

Did you manage to solve this?

sandyara commented 3 years ago

Same issue for me too. Did you solved this ?

akshaybhange commented 3 years ago

not yet. I opened a SO query and received an answer there. Hope that will help. I didn't tried yet. v1.1.9 which is in pre-release is xcode 12 compatible. so either I'll have to downgrade my xcode or wait till v1.1.9 releases.

https://stackoverflow.com/questions/64373197/failed-to-build-module-razorpay-from-its-module-interface/64550071#64550071

Nautiyalsachin commented 3 years ago

Hey @akshaybhange, i am working on this release as you can see on GitHub releases. This release will be available soon.

akshaybhange commented 3 years ago

@Nautiyalsachin, Sorry to disturb you. any estimated release date for pod v1.1.9?

Nautiyalsachin commented 3 years ago

Hi everyone, we have released a new pod version.

Please update it to the latest version - pod 'razorpay-pod', '1.1.10'.

Let me know if this works for you.

manojpocket52 commented 3 years ago

failed to build module 'Razorpay' from its module interface; the compiler that produced it, 'Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)'

Nautiyalsachin commented 3 years ago

Hey @manojpocket52, Xcode is having some issues with module stability, we have to release a new build for this, and this can take a little more time. For now, I would suggest you to downgrade your Xcode and use it so that this issue won't effect you.

navya15-ios commented 3 years ago

Hey @manojpocket52, Xcode is having some issues with module stability, we have to release a new build for this, and this can take a little more time. For now, I would suggest you to downgrade your Xcode and use it so that this issue won't effect you

failed to build module 'Razorpay' from its module interface; the compiler that produced it, 'Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)'

@manojpocket52 @Nautiyalsachin Any solution for this issue?

Nautiyalsachin commented 3 years ago

Hey @navya15-ios: Please update Razorpay-Pod to the latest version 1.1.12. Let me know if that didn't solved the issue for you.

navya15-ios commented 3 years ago

Hey @navya15-ios: Please update Razorpay-Pod to the latest version 1.1.12. Let me know if that didn't solved the issue for you.

Actually problem is with Mac pods were not installing do you know how install pods in MacBook Air M1 chip? any other steps need to follow? I used below command for installing cocoa pods : sudo gem install cocoapods

then I got below error:

ERROR: Loading command: install (LoadError) dlopen(/Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/date_core.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/date_core.bundle - /Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/date_core.bundle ERROR: While executing gem ... (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass

Nautiyalsachin commented 3 years ago

@navya15-ios, This link will help you to resolve the above issue.

raazii commented 2 years ago

Swift Compiler Error (Xcode): Failed to build module 'Razorpay' from its module interface; the compiler that produced it, 'Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)'

How to fix this?

raazii commented 2 years ago

Swift Compiler Error (Xcode): Failed to build module 'Razorpay' from its module interface; the compiler that produced it, 'Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)'

How to fix this?

@Nautiyalsachin