Closed YMonnier closed 5 years ago
Has anyone found a solution to this problem?
I have the same issue :(
Pods
Analyzing dependencies Downloading dependencies Using Alamofire (5.0.0-beta.6) Using AlamofireObjectMapper (6.0.0) Using ObjectMapper (3.4.2)
The quickest solution is to provide default value, in this case just pass .main
DispatchQueue, like below:
return response(queue: queue ?? .main, responseSerializer: DataRequest.ObjectMapperSerializer(keyPath, mapToObject: object, context: context), completionHandler: completionHandler)
Have same issue did anyone solved it?
Nop! I changed the library of my project... Now I am using Moya + ObjectMapper
Fixed in this pull request. As a temporal solution you can add the following line to your Podfile:
pod 'Alamofire', '5.0.0-beta.3'
Still stuck on this
Was able to resolve other issues locally but it appears it can't differentiate between the method signatures in ImmutableMappable and Mappable's implementation of .mapArray(JSONObject:)
Currently blocked on moving to swift 5 on this ðŸ˜Lmk if anyone has a workaround!
Hello @KieranLafferty
I cannot reproduce the issue you reported. Do you use CocoaPods to install AlamofireObjectMapper? If so, do you have the following line pod 'AlamofireObjectMapper', :git => 'https://github.com/RomanPodymov/AlamofireObjectMapper.git', :branch => 'master'
in your Podfile?
Is there a solution for Carthage users?
Hello @davisford
Replace github "tristanhimmelman/AlamofireObjectMapper" ~> 5.2
with github "RomanPodymov/AlamofireObjectMapper" "master"
in your Cartfile.
Hello @YMonnier
Seems good with AlamofireObjectMapper 6.1.0
via Cocoapods ;)
Seems good with
AlamofireObjectMapper 6.1.0
via Cocoapods ;)
In such case close the issue.
Pods