2

I have a source code that takes 2-3 minutes to compile/run. Is there anyway that I can make Xcode beep or give any form of an audio signal?

I don't want to modify my source code. I just want Xcode to give me an audio notification.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
mfaani
  • 33,269
  • 19
  • 164
  • 293

1 Answers1

2

Xcode > Preferences > Behaviors

enter image description here

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
  • This works. But I assume it notifies upon *building* is finished. I was looking for something that would beep after *running* & *attaching*. Is that doable? – mfaani Nov 07 '16 at 17:52
  • Oh never mind. I should just use the `Running` box from your image – mfaani Nov 07 '16 at 17:54
  • Weird... I used all 3, build-succeeds & running-starts & running-completes and assuming that running complete would be the last. But instead running-complete happens first...when I hit the stop button OR exactly when I click the run/play button as if it means when the app is terminated, not finished its running. What does finished running mean?!? – mfaani Nov 07 '16 at 18:02
  • 1
    I get the behavior you want by enabling "Generates output" in "Running": it beeps when the app runs and is attached to the debugger. – Eric Aya Nov 07 '16 at 18:05
  • I was about to say that. :) But another question. What exactly does 'generates output' mean? It confuses me about the diff between compiling, running. I mean what does it mean for `running` to have a start and then also a generate output. If there is such a distinction, I would have thought that the *start* of `running` would overlap with the `build`/`compile`. (sorry if we deviated from the original question). FYI I read [this](http://stackoverflow.com/questions/846103/runtime-vs-compile-time) question before and just read it again... – mfaani Nov 07 '16 at 18:11
  • I guess that "generates output" means "the app is active and attached" (meaning, it is able to output to the debugger). I agree it's not very clear. – Eric Aya Nov 07 '16 at 18:16
  • It actually means that something was printed/logged to the debugger. Meaning your app can be on for 5 minute and log nothing, so no sound is triggered. The moment that you log something then it will make a sound. I assume someone can use to this to be notified only upon logs. – mfaani Jun 12 '19 at 17:10