title: Diagnosing EXC_BAD_INSTRUCTION in Swift standard library
body: <p>My Swift application running in iOS simulator is being stopped in debugger with runtime error <code>EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, sub code=0x0)</code>. </p>
  
  <p>According to the <a href="https://developer.apple.com/videos/wwdc/2014/#409-video" rel="noreferrer">WWDC 2014 Session 409</a> this is typically due to assertion failure.</p>
  
  <p>In the current development Beta version of Xcode 6, the debugger’s stack trace and the above error does not provide enough information to see what the issue is. How do I find out where the problem is?</p>