running script before build of main target starts

Hi,

in my Project I need to run a script before the build of the main target starts. XCode 4 don't support the "Shell Script Targets" anymore, but there is a workaround for that.

You can create an "Aggregate Target", add a "Run Script" build phase to it and add this target as a Target Dependency of your main target.

Now xcode4 runs the Aggregate Target with the script everytime you build your app.

Unfortunatly appcode won't run the script... is there any workaround?

Bastian

0
1 comment

ah .. I just noticed I can add scripts in the Run/Debug Configuration Settings, so I'll try to add my script there.

0

Please sign in to leave a comment.