Im trying to integrate Clover- Go SDK as per this https://github.com/clover/remote-pay-ios-go
But get the following error "Module complied with swift 5.1 cannot be imported by the swift 5.4 complier".
I'm using Xcode 12.5
pod file
pod 'Starscream', :git => 'https://github.com/daltoniam/Starscream.git', :tag => '3.0.5' pod 'GoConnector', '3.3.5'
Gone through google and found many answers to set Build Libraries for Distribution -> YES in project Target, but its not working.
Please advice what can be done to make the app compile without errors
EDIT :
As per some of the suggested solutions I tried downloading XCode Toolchains (swift 4.2) and build the app.


Swift binaries are not compatible between swift 5.1 and 5.4 ("not compatible" here used as a proxy for the real explanation, which is complicated, but true-enough for your purposes).
So there's no "make this work with 5.4" to make an old 5.1 binary linkable with new 5.4 code.
Your two possible solutions involve replacing either the 5.1 code or the 5.4 code:
As Andrew said, get the pod authors to build a new binary, get access to the code and do it yourself. (Not likely, pod authors don't work for you, likely won't just give you their code.)
Change your build, by altering your Xcode toolchain to tell it to build with a different swift version (possible, not trivial). See:
https://medium.com/xcblog/switching-swift-versions-inside-xcode-using-toolchains-755b28831c43