Search code examples
iosswiftcocoapodssdwebimage

No such module 'SDWebImage' using pod


This question is already asked here But no answers work for me. I have tried all the ways which are mentioned below.

  1. Open project using .xcworkspace
  2. Deleted all the pod related file from project and again pod install even updated the cocoa pods.
  3. Added $(inherited) flag in Other Linker Flags. and -ObjC also, so it may find path from pod framework.
  4. Added bridging file to import SDWebImage.
  5. Deep clean, build every time and restart the project.

I am checking all scenario since 4 to 5 hours but I am not getting the exact reason why this is happening.

Below is my Pod file.

platform :ios, '12.0'
use_frameworks!
target 'ProjectName' do
     pod 'Alamofire'
     pod 'SDWebImage'
end

enter image description here


Solution

  • This happened to me many times try these steps:

    -> Try cleaning your project

    OR

    -> Restart your Xcode

    OR

    -> If you doing a new project setup than try again new project again

    1. delete your workspace
    2. again create your new workspace with pods installing from fresh
    3. try to rebuild

    3rd option could work as this happens many times when search paths are not getting in build settings of your project