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

Module compiled with Swift Error #71

Closed mohsinalimat closed 4 years ago

mohsinalimat commented 5 years ago

Hello,

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

???

pawanline commented 5 years ago

Hello, any update on this?

Nautiyalsachin commented 5 years ago

We haven't release Swift 5.1 support yet, because it's not has stable release yet. If you guys want we can provide you a pre-support build.

pawanline commented 5 years ago

Yes, It would be really helpful for us.

pawanline commented 5 years ago

How will you provide the pre-support build?. As we are testing something on Xcode 11 beta, there is an issue with Xcode 10.2.1 and 10.3. Please respond as soon as possible.

Nautiyalsachin commented 5 years ago

Here, you can use this line in your podfile.

pod 'razorpay-pod', :git => 'https://github.com/razorpay/razorpay-pod.git', :branch => 'swift5.1'

so that you can install specific Swift 5.1 there, this is for testing purpose you can release it whenever Xcode 11 releases.

Nautiyalsachin commented 5 years ago

@pawanline can you give me some details about the issue?

pawanline commented 5 years ago

yes sure, though this issue is not related to razorpay.Its about scroll view delegate not called with release build and text field did begin editing not fired.

Praphin commented 4 years ago

When you guys are going to release the new version?

shirishbankar1 commented 4 years ago

My Swift Version is set to 5.0 everywhere still I am getting this error, why ? I have installed 1.1.2 pod.

Nautiyalsachin commented 4 years ago

Hi, for Swift 5.0 use pod 'razorpay-pod', '1.1.1'

shirishbankar1 commented 4 years ago

@Nautiyalsachin Tried that too(pod 'razorpay-pod', '1.1.1'). Still gives error. Module compiled with Swift 5.0 cannot be imported by the Swift 5.1 compiler: /Users/Documents/ProjectName/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule

Nautiyalsachin commented 4 years ago

@shirishbankar1, as this error is saying you are using Swift 5.1 and you have to use Swift 5.1 pod that is - pod 'razorpay-pod' So, try to upgrade your pod to the current one. Let me know if the issue still persist.

shirishbankar1 commented 4 years ago

Yes, thats where I am confused. I have set Swift version to 5.0. I dont even have 5.1 in dropdown in my Xcode 11.0 to set. I have set swift version to 5.0 in Xcode target -> Build settings also in Pods target. I installed pod 'razorpay-pod' too, but gives same error.

Nautiyalsachin commented 4 years ago

try updating your whole code base to Swift 5.1

Nautiyalsachin commented 4 years ago

Closing this issue due to the time elapsed. Please feel free to either re-open the issue or create a new issue if you have any additional queries.