eggswift / pull-to-refresh

#Busy Re-Building....# An easy way to use pull to refresh and infinite scrolling in Swift. Pod 'ESPullToRefresh'
MIT License
1.82k stars 252 forks source link

不支持swift4.2 #144

Closed yinanwang1 closed 5 years ago

yinanwang1 commented 5 years ago

每次pod install后,就提示错误。因为不支持swift 4.2版本,需要手动设置为swift 4.0后才可以。

choiks14 commented 5 years ago

me too.

hoangtuanfithou commented 5 years ago

`post_install do |installer|

swift4_pods = ['ESPullToRefresh']

installer.pods_project.targets.each do |target|

    if swift4_pods.include?(target.name)
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '4.0'
        end
    end

end

end`

can try with this (put to end of pod file)

yinanwang1 commented 5 years ago

@hoangtuanfithou Yes, that's ok by this way. If the author will upgrade this framework, that will be better.