ObjectMapper
ObjectMapper copied to clipboard
Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.3 compiler
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
Try importing using Swift Package Manager as a workaround
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) -> ()
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!
I have to remove ObjectMapper from my solution, I couldn't build my solution because of that.
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!