title: iOS App with Static Lib ALWAYS crashes on Launch of Ad Hoc Archive Build. Cant reproduce in Xcode Debugger
body: <p>We have an App built with a static Lib we are also building for distribution. The App and Lib run fine in Xcode debugger or when loaded on the device by Xcode debugging session. The App ALWAYS crashes as soon as we put an Ad Hoc Archive build on the device. Console log statements indicate it is crashing in Lib code, but crash report not symbolicating Lib code.</p>
  
  <ul>
  <li>Can't reproduce in Xcode Simulator.</li>
  <li>Guard malloc, Guard Edges show nothing (but these only run in simulator).</li>
  <li>No leaks</li>
  <li>Using Xcode 4.3.2</li>
  <li>App targets 4.3 or later.</li>
  <li>Lib targets 3.0 or later.</li>
  <li>Other Linker Flags = -ObjC</li>
  <li>Lib set as "Optional" in Target "Link Binaries With Libraries"</li>
  <li>Thumb support off (using LLVM)</li>
  </ul>
  
  <p>Seeing 2 exceptions on console that might be of use, but so far not turning anything up on net that helps much with this:</p>
  
  <pre><code>Application 'x' exited abnormally with signal 12: Bad system call: 12 (mostly)
  Application 'x' exited abnormally with signal 12: Bad system call: 11 (rarely)
  </code></pre>
  
  <p>We saw the comment elsewhere that static libs with Recursion have issues. But we don't had any recursion in our Lib.</p>
  
  <p>Stumped, need more ideas.</p>