Group Group Group Group Group Group Group Group Group

Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0

i am integrating paytm payment gateway to my project. I am included payment SDK which is latest (swift 5.0)
I am using Xcode 10.2
please help me solve this problem.

Thanks

Hi @nihaltk, welcome to the community! I don’t know who built PaymentSDK so I could look at their documentation but I would suggest changing the pod version and cleaning the project again.

Best,
Gina

Hi @nihaltk,
I believe the issue is that of Binary compatibility, so your module in 4.2 might not work with 5.0

While you believe the SDK is 5.0, xcode tells us that it is compiled in 4.2.1

cheers,

I have solveed the issue…
Thanks to all

@nihaltk can you share your solution so that it would be helpfull to me. Even i’m also facing the same issue. Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler