title: Why do I get iOS linker errors with my static libraries?
body: <p>I have a problem with linking my mixed language framework to a project.<p></p>
  <ol>
  <li><p>I create a framework with Swift and Objective-C classes.</p>
  </li>
  <li><p>The main logic was stored in the Swift file. For example the class with a method that calls NSLog(&quot;Swift log was called&quot;).</p>
  </li>
  <li><p>Objective-C file has a class that has a method in which I create an instance of Swift class and call Swift-log method.</p>
  </li>
  <li><p>I link this framework with my Objective-C project, I can call all that I need in this project, but when I want to build this project I receive error <code>linker command failed with exit code 1 (use -v to see invocation)</code></p>
  <p>And warnings:</p>
  </li>
  </ol>
  <pre><code>ld: warning: Could not find auto-linked library 'swiftFoundation'
  ld: warning: Could not find auto-linked library 'swiftDarwin'
  ld: warning: Could not find auto-linked library 'swiftCoreFoundation'
  ld: warning: Could not find auto-linked library 'swiftCore'
  ld: warning: Could not find auto-linked library 'swiftCoreGraphics'
  ld: warning: Could not find auto-linked library 'swiftObjectiveC'
  ld: warning: Could not find auto-linked library 'swiftDispatch'
  ld: warning: Could not find auto-linked library 'swiftSwiftOnoneSupport'
  </code></pre>
  <p>I also saw the solution with importing empty Swift-file, but it necessary to make a project without any trash.</p>