Moya-ModelMapper icon indicating copy to clipboard operation
Moya-ModelMapper copied to clipboard

Value of type [T(rawValue] has no member compactMap

Open jonathanbyte opened this issue 7 years ago • 2 comments

Currently I've installed the Pod and I got the following error

captura de pantalla 2018-04-06 a la s 09 42 50

Any suggestions?

jonathanbyte avatar Apr 06 '18 15:04 jonathanbyte

Hey @jonathanbyte. Basically Mapper 8.0.0 is available only in Swift 4.1+. You'll need to either use Swift 4.1 or Mapper 7.0.0. You can do it by manually adding this line to your Podfile:

pod 'ModelMapper', '~> 7.0.0'

sunshinejr avatar Apr 06 '18 15:04 sunshinejr

I have solved it. Thanks a lot @sunshinejr

jonathanbyte avatar Apr 06 '18 15:04 jonathanbyte