No such module 'SDWebImage'

2019-08-13 08:38发布

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

3条回答
做自己的国王
2楼-- · 2019-08-13 09:12

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

查看更多
我命由我不由天
3楼-- · 2019-08-13 09:31

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

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

查看更多
\"骚年 ilove
4楼-- · 2019-08-13 09:32

Add -ObjC in Other Linker Flags.

enter image description here

查看更多
登录 后发表回答