xmartlabs / Eureka

Elegant iOS form builder in Swift
https://eurekacommunity.github.io
MIT License
11.78k stars 1.33k forks source link

Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.3 compiler #2108

Closed godlikejoke closed 4 years ago

godlikejoke commented 4 years ago

When I update to the latest version of xcode12.1, and I manually import the latest Eureka (master branch 4966703a61df8e17fc74939dfeec4e5c9e94db7c),

Error when I attempt to import Eureka: module compiled with swift 5.2.4 cannot be imported by the swift 5.3 compiler... / products / debug iPhone simulator/ Eureka.framework/Modules/Eureka .swiftmodule/x86_ 64-apple-ios- simulator.swiftmodule

mats-claassen commented 4 years ago

How are you building it? By manually importing it you mean you add it the source files to your Xcode project? In that case you would be building it with the same Swift compiler, right?

godlikejoke commented 4 years ago

yes,i importing it like this,Eureka was available until I upgraded xocde12.1. and the following error occurred when I tried to building my project. In fact, I also tried to import Eureka through cocoapods. The imported version is 5.3.1. The same error message appears.

image

image

image

mats-claassen commented 4 years ago

Have you tried rebuilding Eureka before building your project? Or a clean and build maybe?

godlikejoke commented 4 years ago

thank you very much! I open the Eureka project, clean and build the project, and then manually import Eureka into my project to solve it. you so cool!