Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to temporarily disable a Run Script phase in Xcode

I have a Run Script phase configured for my project's target. It is run on every build. Is it possible to temporarily disable this script without removing it from the target?

like image 443
GregK Avatar asked Nov 13 '09 04:11

GregK


2 Answers

I don't know of any sort of "disabled" state. However, it's a bash script, so you could just add exit 0 at the top while you want it disabled.

like image 169
nall Avatar answered Oct 20 '22 00:10

nall


Or if it's a single line script you could just add a # at the beginning to comment the statement out.

like image 44
Anders Frohm Avatar answered Oct 19 '22 23:10

Anders Frohm