tristanhimmelman/AlamofireObjectMapper

What is the compatible version with 'Alamofire', '~> 5.0.0-rc.3' ?

Bhargavi-Enrich opened this issue · 6 comments

In pods file

pod 'Alamofire', '~> 5.0.0-rc.3'
pod 'AlamofireObjectMapper', '~> 6.2.0'

In terminal I am getting below error.

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Alamofire":
  In snapshot (Podfile.lock):
    Alamofire (= 5.0.0-rc.3, ~> 5.0.0-rc.3)

  In Podfile:
    Alamofire (~> 5.0.0-rc.3)

    AlamofireObjectMapper (~> 6.2.0) was resolved to 6.2.0, which depends on
      Alamofire (= 5.0.0-rc.2)

[!] Automatically assigning platform `iOS` with version `13.0` on target `EnrichPassport` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Can you please let me know what is the compatible version with Alamofire', '~> 5.0.0-rc.3' ?

Hello @BHZiva
As a temporary workaround, replace pod 'AlamofireObjectMapper', '~> 6.2.0' with pod 'AlamofireObjectMapper', :git => 'https://github.com/tristanhimmelman/AlamofireObjectMapper.git', :tag => '6.3.0' in your Podfile.

Are there plans to switch to a non-rc version of Alamofire?

@RomanPodymov, I have some pods that require Alamofire > 5.0 and it conflicts with AlamofireObjectMapper having a specific version of 5.0.0-rc.2 or 5.0.0-rc.3. Since Alamofire is out of beta now, would AlamofireObjectMapper be updated to support it?

@o15a3d4l11s2 try below once.

pod 'Alamofire', '~> 5.0.0-rc.3'
pod 'AlamofireObjectMapper', '~> 6.2.0'

Thanks, @BHZiva, but unfortunately this does not work for me. Alamofire should be s.dependency "Alamofire", "> 5.0" as described in https://github.com/bustoutsolutions/siesta/blob/master/Siesta.podspec and AlamofireObjectMapper has s.dependency 'Alamofire', '5.0.0-rc.3', which results in error when installing the pods.

Hello @o15a3d4l11s2
Replace pod 'AlamofireObjectMapper', :git => 'https://github.com/tristanhimmelman/AlamofireObjectMapper.git', :tag => '6.3.0' with pod 'AlamofireObjectMapper', :git => 'https://github.com/RomanPodymov/AlamofireObjectMapper.git' in your Podfile. I already created a pull request with Alamofire 5.1 support.