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

The following binaries use incompatible versions of Swift #128

Closed uchiha-itachi95 closed 2 years ago

uchiha-itachi95 commented 2 years ago

I am trying to integrate razorpay SDK into our ios but not able to build it for debug. Project target is using Swift 4.0 (as this is huge project we can not switch to different version of swift as of now).

Getting following error:

/Users/admin/Library/Developer/Xcode/DerivedData/MyAppFramework-haohmnforrsqsidzttprwqrkauoo/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/Razorpay.framework/Razorpay
/Users/admin/Library/Developer/Xcode/DerivedData/MyAppFramework-haohmnforrsqsidzttprwqrkauoo/Build/Products/Debug-iphoneos/MyApp.app/MyApp

I looked into the Razorpay-Swift.h file and it seems like version 1.0.8 was compiled with Swift 4.0.2.

// Generated by Apple Swift version 4.0.2 effective-3.2.2 (swiftlang-900.0.69.2 clang-900.0.38)

IDE Specs

Xcode Version : Version 12.3 (12C33) Project Using Swift 4.0 RazorPay SDK Version : 1.0.8