title: Using static C library in swift, cannot find module
body: <p>I need to create a swift wrapper for a C library for use on both iOS and macOS. 
  I have added the <code>.a</code> to the frameworks list and include it in <code>library search path</code>. I have added the header file to project and added it to <code>User header search paths</code> and I have added a <code>module.modulemap</code> to the project as well. Looking like this: </p>
  
  <pre><code>module codinglibc [system][extern_c] {
      header “codinglibc.h”
      export *
  }
  </code></pre>
  
  <p>But when I import the module in Swift: </p>
  
  <pre><code>import Foundation
  
  import codinglibc
  </code></pre>
  
  <p>I get this error message: <code>No such module 'codinglibc'</code>. </p>
  
  <p>The project is a Cocoa Framework and I have been following this guide: <a href="https://medium.com/swift-and-ios-writing/using-a-c-library-inside-a-swift-framework-d041d7b701d9" rel="nofollow noreferrer">https://medium.com/swift-and-ios-writing/using-a-c-library-inside-a-swift-framework-d041d7b701d9</a></p>
  
  <p>I have looked at a lot of stackoverflow answers but most have been solved by adding import paths, which I already have done and Xcode can find both the header file and the static library so that is not the issue. </p>
  
  <p>So: 
  1. Have I done something obviously wrong which I have missed?
  2. Should I use briding headers instead?</p>
  
  <p><strong>Edit:</strong> I tried enabling <code>Allow Non-modular Includes In Framework Modules</code> 
   still no success </p>