Last Updated: 2018-06-01

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.


There's more to read!

Did this help solve your problem? If so, consider letting us know on Twitter. You should follow us for all the latest articles and updates:


Have you seen our latest project on Github?.

Sign up for our newsletter

Get an email when new content comes out! Emails are not sold and are used only for announcing updates to the site. Expect ~1-2 emails per month. Unsubscribe any time.