问题
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
inOther Linker Flags
.
来源:https://stackoverflow.com/questions/35899890/no-such-module-sdwebimage