Module compiled with swift 4.0 cannot be imported in swift 3.1

前端 未结 6 1463
轻奢々
轻奢々 2021-02-04 04:44

Apparently I have managed to build my project in Xcode 9 beta and now I only get the error

Module compiled with swift 4.0 cannot be imported in swift 3.1<

6条回答
  •  旧时难觅i
    2021-02-04 05:07

    Same problem here but using Carthage. And here is the answer:

    • rm -rf ~/Library/Caches/org.carthage.CarthageKit/DerivedData
    • delete the Carthage folder for the project
    • Update Carthage: carthage update --platform iOS

    And voilà!

提交回复
热议问题