luispadron / UICircularProgressRing

A circular progress bar for iOS written in Swift
MIT License
1.73k stars 290 forks source link

Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.2.4 compiler #245

Closed psaezcube closed 4 years ago

psaezcube commented 4 years ago

Hi

I was testing your library, and after XCode was updated today, I can't compile your library anymore, it gives this exception:

Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.2.4 compiler

luispadron commented 4 years ago

Hi, please follow the issue guidelines when posting an issue. Are you using cocoapods, carthage?

And which version are you using

psaezcube commented 4 years ago

Sorry Luis, I was using Cocoapods and compiling with your 6.5.0 version. Something get updated in Xcode recently, today asked me to install the updates, and after that, that error is displayed when compiling your library.

Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.2.4 compiler

Maybe can it be solved doing this in the library? https://stackoverflow.com/a/58656323

luispadron commented 4 years ago

Gotcha thanks. So have you tried updating your pods? The issue is because Swift has once again broken backwards compatibility any and all libs you use must now be compiled on the new Swift compiler.

I'd recommend running a pod update if that still persists, can you try deleting the Pods directory and running pod install again?

psaezcube commented 4 years ago

thank you very much luis, it seems to work now :)