Search code examples
xcodeaudiobuild

How to play sound on Xcode build success or error?


I want to play a success.mp3 sound on Xcode build success and a failure.mp3 on Xcode build failure. How can I do so? However, I can play sound after build finishes using this trick but need to distinguish success and failure cases.


Solution

  • Take a look at: Preferences > Behaviours

    Preferences page with behaviors for specific events like build succeeds, including actions like "play sound"