tristanhimmelman / AlamofireObjectMapper

An Alamofire extension which converts JSON response data into swift objects using ObjectMapper
MIT License
2.66k stars 474 forks source link

Conversion to swift 4.2 is available #257

Closed jeewancti closed 5 years ago

jeewancti commented 5 years ago

Hi, I am on version 5.0.1 but still getting this error "Conversion to swift 4.2 is available"

mobinzk commented 5 years ago

You can add this to the end of your Podfile


post_install do |installer|
  myTargets = ['AlamofireObjectMapper', 'ObjectMapper']

  installer.pods_project.targets.each do |target|
    if myTargets.include? target.name
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '4.2'
      end
    end
  end
end
tristanhimmelman commented 5 years ago

This should be resolved on v5.2.0 which i just released. Please let me know if not.