Xcode to play a Sound when a fault is logged

Hi

I have an Xcode project in which I am logging (os log) some faults when an error occurs.

While developing I would like to notice it when the fault occurs.

Questions

Are there are better approaches to be alerted (sound or other means) when a fault occurs?

My attempts so far:

  • Add fault log and filter for faults
  • Add breakpoint and play sound when breakpoint encountered

Disadvantages with fault filtering:

  • Though I can filter for faults sometimes I often need to look at debug messages.
  • Having a lot of debug messages I am lost, yes I can filter but might forget to do it during every build

Disadvantages with breakpoints:

  • Sometimes I tend to delete breakpoints and might accidentally delete this breakpoint to play a sound
Xcode to play a Sound when a fault is logged
 
 
Q