title: warning: Swift error in module. Debug info from this module will be unavailable in the debugger
body: <p>I have no debugging values in my console for my swift + obj-c app, and I get a really unhelpful message that explains why the debugger isn't working: &quot;warning: Swift error in module XXX.&quot;. XXX is the name of my module, not a 3rd party that I include.</p>
  <p>My app has been around since before Swift. I used the bridging header to start using Swift, and I recently used the Xcode tool to migrate all the Swift 2 files to Swift 3. (but I still have obj-c legacy in there). I use cocoapods, which may be contributing to the problem.</p>
  <p><a href="https://i.stack.imgur.com/DVNhz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DVNhz.png" alt="no debugger information..." /></a></p>
  <pre><code>(lldb) po self
  warning: Swift error in module XXX.
  Debug info from this module will be unavailable in the debugger.
  </code></pre>
  <p>I tried following the second answer to this <a href="https://stackoverflow.com/questions/39467654/cannot-debug-swift-module-framework-embedded-in-objective-c-app">post</a> and a couple others
  I have found that suggest the same thing: remove duplicate imports.</p>
  <p>I tried removing duplicate imports from my swift project. In fact if I run <code>find . -name &quot;*swift&quot; | xargs grep &quot;import&quot;</code> I get no results. So I went to the extreme of removing all imports from all of my swift files (and commenting out code to get it to compile) just to see if I can get my debugger to come back.</p>
  <p>So...</p>
  <ul>
  <li>Is there another solution to this problem?</li>
  <li>Is there a way to get a more detailed error message?</li>
  <li>Is it a problem to have duplicate headers in the my bridging header? For example, a lot of my obj-c files import UIKit, and I include a few of those files in the bridging header.</li>
  </ul>