tristanhimmelman / AlamofireObjectMapper

An Alamofire extension which converts JSON response data into swift objects using ObjectMapper
MIT License
2.66k stars 476 forks source link

Giving error when install latest version through pod #302

Open codal-jayeshk opened 4 years ago

codal-jayeshk commented 4 years ago

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
AravindBG commented 4 years ago

Any update on this

codal-jayeshk commented 4 years ago

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

Kharauzov commented 4 years ago

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.

o-glethorpe commented 4 years ago

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