5

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
  • 1
    Are you opening your Project or the Workspace? The workspace will include the SDWebImage pod. You need to build the workspace for this to work.
    – stevekohls
    Commented Mar 9, 2016 at 18:45
  • Thanks, I didn't build. it seems it is working now.
    – tmac99
    Commented Mar 9, 2016 at 18:47
  • Hi @tmac99 I have did the same thing, but it showing linker error while try to run workspace. Have you faced it?
    – Satish
    Commented Mar 21, 2016 at 5:34

5 Answers 5

8

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 and after importing any new pods in your code

1

Add -ObjC in Other Linker Flags.

enter image description here

0
0

you can add this to podfile like

platform :ios, '8.0'
# Uncomment the next line when you want all Pods as static framework
# use_modular_headers!
pod 'SDWebImage', :modular_headers => true

or

platform :ios, '8.0'
use_frameworks!
pod 'SDWebImage'
0

For me worked uncommenting this line in podfile:

#use_frameworks! -> use_frameworks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.