title: How to break on beep in Swift?
body: <p>It sometimes happens that your code is causing an alert sound with no console logging or any other indication of what's wrong. In Objective-C, you could break on <code>NSBeep()</code> to find out why this was happening. However, this doesn't seem to be working in Swift 4.</p>
  
  <p>How can I get Swift to break when a beep is played to see the stack that caused it?</p>