Module compiled with Swift 3.0 cannot be imported in Swift 2.3

后端 未结 4 674
执笔经年
执笔经年 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:44

    You'll need to change the Use Legacy Swift Language Version to NO - this makes sure your project will use swift 3.

    If you want to package your project as a POD (for cocoapods) you'll need to add a file named .swift-version (containing 1 single line, "3.0"). This will tell cocoapods to use the swift 3 compiler.

    Everything should work after this changes.

提交回复
热议问题