Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make it beep after compilation ends?

Tags:

xcode

The subject says it all...

I simply want Xcode to make a beep or any other noise once the compilation process is over.

How can I do that?

like image 570
Adrian Grigore Avatar asked Feb 05 '09 10:02

Adrian Grigore


3 Answers

In Xcode 4, you can simply open the "Behaviors" tab in Preferences, select the Build Succeeds event and check the "Play sound" or "Speak announcement" option. Same goes for failed builds and other important events:

Xcode Behaviors

like image 53
Tomas Andrle Avatar answered Nov 11 '22 06:11

Tomas Andrle


In your Project menu select "New Build Phase" and then select "New Run Script Build Phase".

You can then add shell commands to that script, i.e.

/usr/bin/say "Build completed"
like image 41
Alnitak Avatar answered Nov 11 '22 04:11

Alnitak


Better yet, read http://developer.apple.com/documentation/DeveloperTools/Reference/XcodeUserDefaultRef/100-Xcode_User_Defaults/chapter_2_section_7.html

defaults write com.apple.Xcode PBXBuildSuccessSound /path/to/sound.aiff
like image 9
cdespinosa Avatar answered Nov 11 '22 06:11

cdespinosa