tristanhimmelman/AlamofireObjectMapper

Alamofire 5.0.0-rc.2 compatible version?

SagarUnagar opened this issue ยท 21 comments

Hello all,

Which version is compatible with Alamofire 5.0.0-rc.2?

Best

Pods,

pod 'Alamofire'
pod 'AlamofireObjectMapper', '~> 6.1.0'

Errors,

image

Hello @SagarUnagar @maoobordel
I created a pull request with Alamofire 5.0.0-rc.2 support. If you use CocoaPods just replace pod 'AlamofireObjectMapper', '~> 6.1.0' with pod 'AlamofireObjectMapper', :git => 'https://github.com/RomanPodymov/AlamofireObjectMapper.git', :branch => 'master' in your Podfile.

@RomanPodymov Thank you for your fixes. Its seems working fine now. When will be it merged to the main branch?

@SagarUnagar Probably this question is for @tristanhimmelman.

@RomanPodymov I have some issues on your PR
Screen Shot 2019-09-23 at 15 13 14

Hello @wixvii
Can you reproduce this issue on AlamofireObjectMapper 6.1.0?

@RomanPodymov yeah both have the same issue

ozgur commented

@wixvii I believe it should be fixed in #288

Could you please check if the problem is gone?

@wixvii How do you install AlamofireObjectMapper? What Swift version are you using?

I have the same problem.
I use Swift5 and Xcode11.

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

Hello @wixvii @ozgur @chanmomo413
Can you please share an example project where you can reproduce these errors?

@chanmomo413 I use legacy build system and it fixed it.

same problem as wixvii , but legacy build system didnt helped. :(

when i get version from "Ozgur" fork , i got "no such module 'ObjectMapper'" error.
So not version /fork working at all :-x

is it possible to merge that pull request (from ozgur about swift5 compatibility) ? because i cannot add fork repo to podspec dependency. Thank you so much guys

I have just merged and released the PR to resolve this. Thanks @RomanPodymov

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

Hello @suryakantkachhi
AlamofireObjectMapper 6.2.0 uses Alamofire 5.0.0-rc.2.
As you can see in Alamofire 5.0.0-rc.1 release notes 2 new typealiases were added (AFDataResponse and AFDownloadResponse). So you can use AFDataResponse<LoginDSModel> instead of DataResponse<LoginDSModel, AFError>.
If you want to use Alamofire 5.0.0-rc.3 replace pod 'AlamofireObjectMapper' with pod 'AlamofireObjectMapper', :git => https://github.com/RomanPodymov/AlamofireObjectMapper.git in your Podfile.

Hello @RomanPodymov i have used Alamofire 5.0.0-rc.3 replaced pod 'AlamofireObjectMapper' with pod 'AlamofireObjectMapper', :git => https://github.com/RomanPodymov/AlamofireObjectMapper.git in Podfile hence encountered with below error.

It seems like source master branch doesn't exist?

[!] Error installing AlamofireObjectMapper
[!] Failed to download 'AlamofireObjectMapper': [!] /usr/local/bin/git clone https://github.com/RomanPodymov/AlamofireObjectMapper.git /var/folders/tb/ly7jxws951zbtkffmcyycf2c0000gn/T/d20191103-1218-17hf24n --template= --single-branch --depth 1 --branch master

Cloning into '/var/folders/tb/ly7jxws951zbtkffmcyycf2c0000gn/T/d20191103-1218-17hf24n'...
warning: Could not find remote branch master to clone.
fatal: Remote branch master not found in upstream origin
Screenshot 2019-11-03 at 9 17 27 PM

Hello @suryakantkachhi
Try again please, I restored this branch.

Much thanks ๐Ÿ‘ @RomanPodymov now its installed.
Screenshot 2019-11-03 at 10 26 33 PM