99

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.

Joshua Olson
  • 3,675
  • 3
  • 27
  • 30

2 Answers2

166

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)

CedricSoubrie
  • 6,657
  • 2
  • 39
  • 44
33

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

On Xcode 7 (updated), XCode 10.1

Shortcut : Shift + cmd + <

Ravi Kumar Gupta
  • 1,698
  • 2
  • 22
  • 38
Merlin
  • 439
  • 4
  • 5