Xcode 4: Adding Command-Line Arguments and Environment Variables
·1 min
Choose Edit Scheme from the Scheme pop-up menu in the project window toolbar to open the scheme editor. Select Run from the list on the left side of the scheme editor. Click the Arguments button in the scheme editor.

From here you can add command-line arguments and environment variables. Clicking the Diagnostics button provides checkboxes for commonly-used environment variables.