How do you specify command line arguments in Xcode 4?

XcodeCommand Line-Arguments

Xcode Problem Overview


I just upgraded to Xcode 4 and can't find much documentation on it yet, since it just went gold master. I need to specify a command line argument for testing my application.

The Xcode 3.2 advice doesn't help since everything got moved around.

Xcode Solutions


Solution 1 - Xcode

Command line arguments and environment variables can be set up in the Run section of the scheme editor.
Product -> Edit Scheme... -> Run -> Arguments (Copy-Paste from the link given by Jano)

Solution 2 - Xcode

The shortcut cmd + < works too. (Default shortcut)

On Xcode 7 (updated), XCode 10.1

Shortcut : Shift + cmd + <

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJoshua OlsonView Question on Stackoverflow
Solution 1 - XcodeCedricSoubrieView Answer on Stackoverflow
Solution 2 - XcodeMerlinView Answer on Stackoverflow