title: How to use static library and module map file with Swift?
body: <p>I'm trying to include a 3rd party static library in my Swift project. I have these two files, among a few others.</p>
  
  <blockquote>
    <p>GoogleConversionTrackingSDK/ACTReporter.h
    GoogleConversionTrackingSDK/libGoogleConversionTracking.a</p>
  </blockquote>
  
  <p>I added the <code>.a</code> file to the target's "Linked Frameworks and Library" section. I then created a <code>module.map</code> file in my project, like this:</p>
  
  <pre><code>module GoogleConversionTracking {
      header "../../Libs/GoogleConversionTrackingSDK/ACTReporter.h"    
      export *
  }
  </code></pre>
  
  <p>And in Swift files I can now refer to it:</p>
  
  <pre><code>import GoogleConversionTracking
  </code></pre>
  
  <p>But I get an error at link time:</p>
  
  <blockquote>
    <p>ld: library not found for -lGoogleConversionTracking<br>
    clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
    note: library not found for -lGoogleConversionTracking</p>
  </blockquote>
  
  <p>How do you fix this? I would like to not use a bridging header, but instead use these module definition files, if possible.</p>