Apple updates Swift3.2 every year, but some of the open source libraries used in the project are not updated in time. If you want to use Swift3.2, you need to use Swiftt4.

# Swift version declaration
  post_install do |installer|
        installer.pods_project.targets.each do |target|
            if ['Library name 1'.'Jinkey'].include? target.name
                target.build_configurations.each do |config|
                    config.build_settings['SWIFT_VERSION'] = '4.0'
                    config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
                end
            else
                target.build_configurations.each do |config|
                    config.build_settings['SWIFT_VERSION'] = '3.2'
                    config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
                end
            end
        end
    end
Copy the code