PB-Tech / SwiftyLoad

swift implementation of load and initialize method on ios class
MIT License
41 stars 11 forks source link

Swift5报错 #1

Open jiang443 opened 5 years ago

jiang443 commented 5 years ago

之前用在Swift4.2中正常,升级到Swift5后报错如下:

objc[31593]: Swift class extensions and categories on Swift classes are not allowed to have +load methods

tanpengsccd commented 4 years ago

从swift5 开始,swift 定义的class 不能再桥接给OC代码扩展load类方法了。暂时initialze不受影响

snilwx commented 3 years ago

从swift5 开始,swift 定义的class 不能再桥接给OC代码扩展load类方法了。暂时initialze不受影响

仍然可以的,我的swift5工程正常运行,测试没问题