Module compiled with swift 4.0 cannot be imported in swift 3.1

前端 未结 6 1437
轻奢々
轻奢々 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条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 05:16

    You have two options that you can do:

    Clean the project and then try to re-build your solution and see if it works.

    If it don´t work and you still get the same error message then do the following steps and it should work for you:

    1. Open your podfile and remove Alamofire
    2. Run pod update
    3. Re-add Alamofire to your podfile
    4. Run pod update
    5. When this is done, clean your project and run it

提交回复
热议问题