No such module 'SDWebImage'

2019-08-13 08:47发布

问题:

I installed SDWebImage using CocoaPods.

My podfile was as it is written in the https://github.com/rs/SDWebImage

platform :ios, '8.0'
use_frameworks!
pod 'SDWebImage', '~>3.7'

when I import SDWebImage it says

No such module 'SDWebImage'

my Xcode version is: Version 7.2.1

回答1:

Use the new <YourProject>.xcworkspace instead of <YourProject>.xcodeproj.

The xcworkspace contains your project and your pods after pod install.



回答2:

Just build your project before importing any new pods in your code



回答3:

Add -ObjC in Other Linker Flags.