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.
I solve this issue by removing OTHER_SWIFT_FLAGS
custom flag in Swift Compiler - Custom Flags
OTHER_SWIFT_FLAGS = "$(inherited) -D COCOAPODS -Xcc -fmodule-map-file=\"${PODS_ROOT}/modulePath/moduleName.modulemap\"";
I had this issue too, I'm not very familiar with XCode, but I opened the .xcodeworkspace file and then clicked build, which was successful!
I fixed this problem myself. I can tell you what I did. Not sure which steps did it exactly, but below are all steps:
pod cache clean --all
pod init
. A new "Podfile"-file is added to the dirpod install
In my case, I think the row use_frameworks!
in the "Podfile" did the trick.
Hope this help you guys out!
In case it helps anyone else, I was able to solve this issue a different way. I was accidentally opening up my .xcproject
instead of my .xcworkspace
. When I opened the correct file, the error went away.
I had this issue only when I wanted to make an archive. On the other hand, debug worked fine. After a while I noticed that min iOS version was different between my Target, Project and Podfile min iOS version. After syncing them all to same value (iOS 11) Xcode offered me Validate Project Settings - Update to recommended settings option which I accepted and I was able to archive my project.