I am having this problem with a brand new project. This problem happens with both RestKit and Facebook SDK. Strangely SwiftyJSON works just fine. I create a brand new swift
The problem might be that there really is no such module. Especially if the pod name contains dashes and other controversial characters.
In my case I was trying to use Dip-UI library. The sample project was using Carthage which I wanted to replace with CocoaPods. Module name with Carthage was DipUI
, while with CocoaPods it was Dip_UI
, which meant that I was getting "No such module" until I changed the name.
Another reason of this problem can be wrong values in target's Build Settings - Build Active Architecture Only. Settings like in the picture work for me.
One of the answers here was make sure that XCode is completely shut down when installing pods
and I knew I had not done this. So I just closed Xcode completely and opened it again without running pod install
and it fixed the problem. So restarting Xcode worked for me.
One thing you could very easily do to rectify this issue is to make sure that XCode is completely shut down when installing pods. Whenever I have this issue, I go back and find out that XCode was still open even though I closed the project. Hope that helps!
I had this problem after marking Pods
folder as ignored in .gitignore
. How I fixed is that I rm -rf
ed the Pods
folder and ran pod install
, clean & build.
In my case I only had to check the next option in Xcode Find implicit Dependecies
I don't know exactly why but this was enough for me, hope for you too :).