title: lldb error: Couldn't lookup symbols. Swift iOS
body: <p>With lldb, I want to instantiate a Swift Class in my release iOS build and release dynamic framework.</p>
  
  <p>I attach lldb to my release build, on the Simulator.</p>
  
  <p><strong>Main app - works</strong></p>
  
  <pre><code>(lldb) exp let $c = hello_class()
  error: &lt;EXPR&gt;:3:10: error: use of unresolved identifier 'hello_class'
  let $c = hello_class()
           ^~~~~~~~~~~
  (lldb) expr import My_App
  (lldb) exp let $c = hello_class()
  (lldb) po $c.hello()
   hello 
  </code></pre>
  
  <p><strong>dynamic framework - fails</strong></p>
  
  <pre><code>(lldb) dclass -m myframework
  Dumping classes
  ************************************************************
  myframework.RustyAppInfo
  
  (lldb) expr import myframework
  (lldb) expr let $d = RustyAppInfo()
  error: Couldn't lookup symbols:
    __T011myframework12RustyAppInfoCACycfC
  </code></pre>
  
  <p>Both the app and dynamic framework were built with no optimization.</p>
  
  <p><strong><em>UPDATE</em></strong></p>
  
  <p><strong>static framework - fails</strong></p>
  
  <p>Same results when changing - to the Xcode 9 introduced feature - static Swift framework.</p>
  
  <p><strong>Xcode - Dead Code Stripping</strong></p>
  
  <p>by default, with Swift code, <code>Dead Code Stripping</code> is turned ON.  I checked to see if that was the issue.  No difference to results.</p>