Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Giving error when install latest version through pod #302

Open
codal-jayeshk opened this issue Mar 30, 2020 · 4 comments
Open

Giving error when install latest version through pod #302

codal-jayeshk opened this issue Mar 30, 2020 · 4 comments

Comments

@codal-jayeshk
Copy link

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
Copy link

Any update on this

@codal-jayeshk
Copy link
Author

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

@Kharauzov
Copy link

Kharauzov commented Apr 6, 2020

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants