Module compiled with Swift 3.0 cannot be imported in Swift 2.3

后端 未结 4 676
执笔经年
执笔经年 2020-12-18 18:05

This is what I do:

import BSTableViewReorder

and get the following error:

Module compiled with Swift 3.0 cannot be i

4条回答
  •  不思量自难忘°
    2020-12-18 18:19

    in my case, the framework developers added this line in the code that was intended for the Podfile:

    config.build_settings['SWIFT_VERSION'] = '2.3' # or '3.0'
    

    as you can see, they defaulted to '2.3', which caused problems because i was running 3.0. simply removing the '2.3' # or and leaving the '3.0' fixed the problem.

提交回复
热议问题