How to make Xcode Run Script Run assembly phase if assembly breaks?

I want to run Run Script Build Phase in Xcode, which does this:

/ usr / bin / say "Break it." if my build failed.

Not sure how to fix build failures? Two reasons that I suppose, one "what to catch", two "assembly is made so that Script already works in theory ...?"

How do you do this?

Thanks//:)

+3
source share
1 answer

, PBXBuildFailureSound Xcode. - :

defaults write com.apple.Xcode PBXBuildFailureSound /path/to/sound

. Xcode User Default Reference Xcode.

/usr/bin/say aiff , SoundFlower QuickTime.

+1

Source: https://habr.com/ru/post/1716438/


All Articles