tristanhimmelman / AlamofireObjectMapper

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

Made compatible with Alamofire 5.0.0-rc2 #288

Closed ozgur closed 4 years ago

ozgur commented 4 years ago

This PR addresses the following issues:

  1. Alamofire 5.0.0-rc.2 compatible version?
  2. Generic type 'DataResponse' specialized with too few type parameters (got 1, but expected 2)

PTAL @tristanhimmelman

For those who are using Carthage, you can simply build from here for now:

github "ozgur/AlamofireObjectMapper" "master"

or Cocoapods:

pod 'AlamofireObjectMapper', :git => 'https://github.com/ozgur/AlamofireObjectMapper.git', :branch => 'master'
suryakantkachhi commented 4 years ago

Hi

I'm still getting this error with below pods, i tried all mentioned Git master but nothing working.

Getting this error in XCODE11 with swift 5.

When i use AFDataResponse instead of DataResponse then issue go away. i don't whether its the correct approach to resolve the same ?

Please Help me to get out of it. thanks

pod 'Alamofire', '~> 5.0.0-rc.2' pod 'ObjectMapper', '~> 3.4'

pod 'AlamofireObjectMapper', :git => 'https://github.com/tristanhimmelman/AlamofireObjectMapper.git', :branch => 'master'

pod 'AlamofireObjectMapper', :git => 'https://github.com/RomanPodymov/AlamofireObjectMapper.git', :branch => 'master'

pod 'AlamofireObjectMapper', :git => 'https://github.com/ozgur/AlamofireObjectMapper.git', :branch => 'master'

pod 'AlamofireObjectMapper', '~> 6.2.0'

pod 'AlamofireObjectMapper', '~> 5.2'

pod 'Alamofire', '~> 4.0.0'

Screenshot 2019-11-03 at 7 16 23 PM