Objectmapper: Swift 4 error

Created on 25 Sep 2017  路  8Comments  路  Source: tristanhimmelman/ObjectMapper

Method was obsoleted in Swift 4:

ObjectMapper/Sources/IntegerOperators.swift:100:68: 

'toIntMax()' is unavailable

Most helpful comment

This works for me

pod 'AlamofireObjectMapper', :git => 'https://github.com/tristanhimmelman/AlamofireObjectMapper.git', :branch => 'swift-4'
pod 'ObjectMapper', '~> 3.0'

All 8 comments

+1

Use the swift-4 branch

Swift 4 pre-downloading fails
pod 'ObjectMapper', :git => 'https://github.com/Hearst-DD/ObjectMapper.git', :branch => 'swift-4' when using also AlamofireObjectMapper:

[!] Unable to satisfy the following requirements:

+1

This works for me

pod 'AlamofireObjectMapper', :git => 'https://github.com/tristanhimmelman/AlamofireObjectMapper.git', :branch => 'swift-4'
pod 'ObjectMapper', '~> 3.0'

For me too:
Installing AlamofireObjectMapper 5.0.0 (was 4.1.0)
Installing ObjectMapper 3.0.0 (was 2.2.9)
Thanks a lot.

Please use the latest release, your problems should be resolved.

@phoney Thank You ... its working 馃憤

Was this page helpful?
0 / 5 - 0 ratings