No such module 'RestKit' with cocoapods and swift

后端 未结 25 2123
再見小時候
再見小時候 2020-12-01 02:34

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

相关标签:
25条回答
  • 2020-12-01 03:20

    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.

    0 讨论(0)
  • 2020-12-01 03:21

    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.

    0 讨论(0)
  • 2020-12-01 03:22

    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.

    0 讨论(0)
  • 2020-12-01 03:23

    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!

    0 讨论(0)
  • 2020-12-01 03:23

    I had this problem after marking Pods folder as ignored in .gitignore. How I fixed is that I rm -rfed the Pods folder and ran pod install, clean & build.

    0 讨论(0)
  • 2020-12-01 03:24

    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 :).

    0 讨论(0)
提交回复
热议问题