title: Suddenly can no longer compile - No such module 'SDWebImage'
body: <p>So suddenly my project stopped working and I have no idea why and I'm running out of ideas.</p>
  <p>I've found some blogs <a href="https://andresalla.com/en/fixing-virtual-filesystem-overlay-file-all-product-headers-yaml-not-found-error/" rel="nofollow noreferrer">1</a> <a href="https://steipete.com/posts/couldnt-irgen-expression/" rel="nofollow noreferrer">2</a> and similar requests <a href="https://stackoverflow.com/questions/29500227/getting-error-no-such-module-using-xcode-but-the-framework-is-there">1</a> <a href="https://stackoverflow.com/questions/54683959/no-such-module-sdwebimage-using-pod">2</a> <a href="https://stackoverflow.com/questions/59907319/no-such-module-sdwebimage-using-pod-swift-5">3</a> for help but nothing seems to work for me. I may be doing something wrong though.</p>
  <p>running xcode 13.4.1</p>
  <p>I've got 4 distinct errors</p>
  <pre><code>Command EmitSwiftModule failed with a nonzero exit code
  </code></pre>
  <pre><code>error: accessing build database &quot;/Users/myuser/Library/Developer/Xcode/DerivedData/App-btdfdbatbdurmeawknwdwmjrqpsw/Build/Intermediates.noindex/XCBuildData/build.db&quot;: disk I/O error
  </code></pre>
  <pre><code>Virtual filesystem overlay file '/Users/myuser/Library/Developer/Xcode/DerivedData/App-btdfdbatbdurmeawknwdwmjrqpsw/Build/Intermediates.noindex/App.build/Debug-iphoneos/App DEV.build/all-product-headers.yaml' not found
  </code></pre>
  <pre><code>/Users/myuser/myapp-ios-app/App/UI/Feed/FeedVC/FeedVC.swift:11:8: No such module 'SDWebImage'
  </code></pre>
  <p>I believe the EmitSwiftModule is related with not being able to handle the pod therefore causing the issue in the &quot;all-product-headers.yaml&quot; which is generated to fetch all the pods headers?</p>
  <p>So assuming that all things in derived date are as they should be (because i've deleted it) I tried to focus on why is the pod no longer compiling. To my co-worker is working fine. Maybe he will have the same issue if he deletes the derivedData? Maybe we are using some older version files?</p>
  <p>Some things I've tried:</p>
  <ul>
  <li>clean the project</li>
  <li>reset pods cache</li>
  <li>delete derived data folder</li>
  <li>update the pods</li>
  <li>clean xcode preferences</li>
  <li>for this pod they say we should add :modular_headers =&gt; true in pod file</li>
  <li>re download the project clean to another folder</li>
  <li>instead of cocoapods use the package manager for SDWebImage</li>
  <li>due &quot;all-product-headers.yaml&quot; issue i read here that i could just add a header to my project</li>
  </ul>
  <p>I've tried to create a project from scratch and just use the same pods and the project seems to run fine. But this is not a solution.</p>
  <p>Can someone please help me? Any ideas?</p>