How to fix cocoapod .modulemap file not found

后端 未结 5 1079
Happy的楠姐
Happy的楠姐 2021-02-07 10:19

When I try to build my project, I get a compile time error saying that a \"Module map file\" for my pod cannot be found and that I am missing a \"SwiftShimes\" module.

5条回答
  •  梦如初夏
    2021-02-07 10:50

    I fixed this problem myself. I can tell you what I did. Not sure which steps did it exactly, but below are all steps:

    1. Copy the contents of your Podfile somewhere safe
    2. Run: pod cache clean --all
    3. Remove "Podfile"-file from the dir.
    4. Xcode: Product > Clean Build Folder
    5. Run: pod init. A new "Podfile"-file is added to the dir
    6. Start adding parts of your original Podfile to this file
    7. Run: pod install
    8. Try to build your project again

    In my case, I think the row use_frameworks! in the "Podfile" did the trick.

    Hope this help you guys out!

提交回复
热议问题