Objectmapper: toIntMax() is unavailable in swift 4

Created on 20 Sep 2017  路  7Comments  路  Source: tristanhimmelman/ObjectMapper

Got those problem when build in swift 4

Most helpful comment

For now, you can select Swift 3.2 under Pods -> Targets -> ObjectMapper -> Swift language version option. Or use swift-4 branch

All 7 comments

how to solve this problem........

if you used xcode 9, please choose convert (swift 4) later, it will help you can build success right now.

For now, you can select Swift 3.2 under Pods -> Targets -> ObjectMapper -> Swift language version option. Or use swift-4 branch

鎬庝箞瑙e喅

Add this to the bottom of your Podfile, until ObjectMapper won't be updated:

post_install do |installer|
  installer.pods_project.targets.each do |target|
        target.build_configurations.each do |configuration|
            # these libs work now only with Swift3.2 in Xcode9
            if ['ObjectMapper'].include? target.name
                configuration.build_settings['SWIFT_VERSION'] = "3.2"
            end
        end
    end
end

Replace with this file

Please replace file with this file, it will solve all the errors related to that.
Happy coding

Please use the latest release with swift 4 support

Was this page helpful?
0 / 5 - 0 ratings