No such module 'SDWebImage'

偶尔善良 提交于 2019-12-12 19:39:11

问题


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.



来源:https://stackoverflow.com/questions/35899890/no-such-module-sdwebimage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!