title: How can I debug in a framework in Xcode?
body: <p>I have two projects, one is the <code>networkLib</code> for login and some other network function, the other is the <code>usingLibDemo</code>. So I have all the source code of both projects.</p>
  
  <p>The <code>networkLib</code> project outputs a framework, called <code>myNetKit.framework</code>, which is used by <code>usingLibDemo</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/Y8rys.png" alt="enter image description here"></p>
  
  <p>Now I successfully use <code>myNetKit.framework</code> to login, but sometimes it crashes, maybe in main() without stack information, but sometimes Xcode gives me the stack info like below:</p>
  
  <p><img src="https://i.stack.imgur.com/E5Vpm.png" alt="enter image description here"></p>
  
  <p>So I know where it crashes:</p>
  
  <p><img src="https://i.stack.imgur.com/e6x9P.png" alt="enter image description here"></p>
  
  <p>But the <code>Utils.m</code> is not exposed, <strong>how Xcode gets the stack info and the crash line, and eventually open the source file for me?</strong> Because that I have the source code in my disk?</p>
  
  <p>If so, how can I debug the <code>myNetKit.framework</code> step by step, when it is not crashed?</p>
  
  <p>Thanks a lot for any tips.</p>