I have added custom script as pre-action for Build phase in my scheme (I need to perform several changes (including Info.plist manipulations) before build actually starts - thus I can't use build phase scripts because they run after Info.plist is copied to the product). Everything works fine, except the fact that this script is also executed when I clean my project. And I don't need it.
I checked environment and possible params passed to the script in different cases, but they are equal in both build and clean scenarios.
Is there any way to disable script execution during clean-up? Or may be it is possible to check somehow in the script if it was started during clean-up or during build.
I'm using Xcode 5.
Thank you in advance.