Quick Look: Using Input/Output Files in Xcode 'Run Script' Build Phases
For each input and output file, in the order they are listed the following environment variables are made available:
SCRIPT_INPUT_FILE_{N}
SCRIPT_OUTPUT_FILE_{N}
Where {N} is the ordered index of the input/output file starting from zero.