AlamofireObjectMapper icon indicating copy to clipboard operation
AlamofireObjectMapper copied to clipboard

Giving error when install latest version through pod

Open codal-jayeshk opened this issue 4 years ago • 4 comments

Hello i am getting complier error when run the project. i did install the latest version of it.

Error :

"Generic type 'DataResponse' specialised with too few type parameters (got 1, but expected 2)"

here i attach screenshot for more reference.

Screenshot 2020-03-30 at 2 53 39 PM

codal-jayeshk avatar Mar 30 '20 09:03 codal-jayeshk

Any update on this

AravindBG avatar Apr 03 '20 02:04 AravindBG

No, Still i am waiting for someone give me solution.

codal-jayeshk avatar Apr 03 '20 04:04 codal-jayeshk

Hi @codal-jayeshk , I had the same issue after updating of pods in the project. In my case, AlamofireObjectMapper version was downgraded from 6.2.0 to 6.0.0 automatically. And this caused errors. So I fixed it via manual version setting. Consider it to be temp solution.

  pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire', :branch => '5.0.0-rc.3'
pod 'AlamofireObjectMapper', :git => 'https://github.com/tristanhimmelman/AlamofireObjectMapper', :branch => 'master'

Not sure what happened there. Probably, some issues with versioning on Alamofire dependencies.

Kharauzov avatar Apr 06 '20 06:04 Kharauzov

.responseObject(completionHandler: { (response: DataResponse<Type, AFError>) in Should work.

o-glethorpe avatar May 13 '20 18:05 o-glethorpe