LTScrollView icon indicating copy to clipboard operation
LTScrollView copied to clipboard

swift4.2又有新语法出来,麻烦您有时间改下

Open dashuang1234 opened this issue 6 years ago • 3 comments

例如:UITableViewStyle->UITableView.Style

dashuang1234 avatar Dec 04 '18 10:12 dashuang1234

是的,每次新增一个pod组件就需要修改 LTScrollView 为 swift4.0 才能编译通过,希望尽快修改一下

leospace avatar Jun 11 '19 05:06 leospace

是的,每次新增一个pod组件就需要修改 LTScrollView 为 swift4.0 才能编译通过,希望尽快修改一下

不过用这种方式可以暂时解决问题,在podfile中加入以下代码:

------# Swift 版本声明 post_install do |installer| installer.pods_project.targets.each do |target| if ['LTScrollView'].include? target.name target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '4.0' config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' end end end end

注意:去掉前面的 ------

leospace avatar Jun 11 '19 05:06 leospace

@leospace @dashuang1234 已支持Swift5 建议升级

gltwy avatar Aug 22 '20 11:08 gltwy