Error when building AlamofireObjectMapper (6.0.0) with Xcode 10.2 & Swift 5
YMonnier opened this issue ยท 13 comments
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)
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'
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.
Seems good with AlamofireObjectMapper 6.1.0
via Cocoapods ;)
Seems good with
AlamofireObjectMapper 6.1.0
via Cocoapods ;)
In such case close the issue.