1

with other IDE, you can pass parameter to the program via the IDE (it save times instead of typing hello.c parameter1 parameter2 in the shell)

Is there any way to pass parameters to the program trhough the Xcode IDE instead of just clicking on "RUN" then "CONSOLE" (which provide no arguments to the program)

Thanks

sf_tristanb
  • 8,725
  • 17
  • 74
  • 118
  • This is a better, working solution for this: http://stackoverflow.com/questions/5025256/how-do-you-specify-command-line-arguments-in-xcode-4. Worked with Xcode 7.3.1 – Alonso Urbano Jul 11 '16 at 14:16

1 Answers1

2

Under "Executables" get info on your binary.

Go to the "Arguments" tab, and add them there.

Brad
  • 11,262
  • 8
  • 55
  • 74