title: Importing static library in swift project
body: <p>Create a static library in objective c and c and trying to import in swift project. 
  <a href="https://stackoverflow.com/a/59215981/612854">followed this link</a></p>
  
  <p><strong>Getting this error while building application</strong></p>
  
  <blockquote>
    <p>Undefined symbols for architecture arm64:<br>
    "_OBJC_CLASS_$_XYZ", referenced from:
          objc-class-ref in ViewController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code
    1 (use -v to see invocation)</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/pxF1e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pxF1e.png" alt="Static library source"></a>
  <a href="https://i.stack.imgur.com/Twct1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Twct1.png" alt="Library Search Paths"></a><a href="https://i.stack.imgur.com/fOoZv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fOoZv.png" alt="import paths"></a>
  Using:</p>
  
  <p><strong>Xcode10.2</strong></p>
  
  <p><strong>Swift 4.2</strong></p>