ObjectMapper icon indicating copy to clipboard operation
ObjectMapper copied to clipboard

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

Open gabibibi opened this issue 5 years ago • 5 comments

When I want to compile my project on XCode 12.0 version I got this error:

Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.3 compiler: /Users/admin/Projekty/viscaios/Carthage/Build/iOS/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/arm64-apple-ios.swiftmodule

ObjectMapper version: 4.2.0

gabibibi avatar Sep 21 '20 07:09 gabibibi

Try importing using Swift Package Manager as a workaround

Rashidium avatar Sep 21 '20 20:09 Rashidium

unfortunately I have now this errors:

Undefined symbol: ObjectMapper.Map.subscript.getter : (Swift.String) -> ObjectMapper.Map

Undefined symbol: protocol descriptor for ObjectMapper.BaseMappable

Undefined symbol: protocol descriptor for ObjectMapper.Mappable

Undefined symbol: ObjectMapper.<- infix<A>(inout A?, ObjectMapper.Map) -> ()

gabibibi avatar Sep 29 '20 14:09 gabibibi

I have the same issue with XCode 11.5: /Users/joe/Desktop/Ybor/CcTransactionResponse.swift:10:8: Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.3.1 compiler: /Users/joe/Desktop/Ybor/Carthage/Build/iOS/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/arm64-apple-ios.swiftmodule

This is quite urgent, so any help would be appreciated!

Laban1 avatar Feb 17 '21 18:02 Laban1

I have to remove ObjectMapper from my solution, I couldn't build my solution because of that.

gabibibi avatar Feb 18 '21 07:02 gabibibi

I also encountered the same problem. Solve it by the following way: comment out ObjectMapper from pod.file and import it directly into the project. Compilation is successful!

smelloftime avatar Feb 28 '21 04:02 smelloftime