Module compiled with Swift 5.0 cannot be imported by the Swift 5.5.1 compiler:/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/x86_64.swiftmodule

I'm getting this kind of error Im tried all the solution what is there in stack over flow but no use.

Using

OS : MacOS Monterey

Xcode : 13.1 Version Latest

Pod files installed and Updated

Swift language version Change to 4.0 to 5.0

//:configuration = BUILD_LIBRARY_FOR_DISTRIBUTION = YES

Also I clean the derived Data in workspace setting

Clean the project and build it again but facing same issue.

Please suggest me to solve this error.

Module compiled with Swift 5.0 cannot be imported by the Swift 5.5.1 compiler:/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/x86_64.swiftmodule
 
 
Q