Module compiled with Swift 4.1.2 cannot be imported in Swift 4.1.50: Xcode 10 Error
Swift 4.2 came out and I'm receiving this error message in my project when using ObjectMapper and some other pods too: Module compiled with Swift 4.1.2 cannot be imported in Swift 4.1.50 So how do I tell Xcode to start updating my project and migrate it to Swift 4.2? In Swift 4.2 there is a change in implementation of Implicitly Unwrapped Optional (IUO) , as per the swift blog now implicit unwrapped optional T! will be considered as T? with and extra flag for the compiler to know it is an implicit unwrap optional. The new mental model for IUOs is one where you consider ! to be a synonym for ?