title: How to Pass Command-Line Arguments in Xcode
body: <p>I'm trying to pass arguments to my Xcode C++ command-line tool.  I think I'm following the help, and the answers I've found on Stack Overflow, but I'm not having any luck.  </p>
  
  <p>I'm using Xcode 7.2.1.  I've edited the scheme to have two command-line arguments (an input file and an output file.)  I've posted a screen shot of the editor below.</p>
  
  <p>When I run the code, it doesn't find the arguments.  (I don't mean that it can't find the files on disk.  The program aborts because argc is 1 instead of 3.)  </p>
  
  <p>Can you tell me what I'm doing wrong?</p>
  
  <p>EDIT:  After playing around with it in response to the advice I received, it suddenly worked.  I have no idea what changed.  It works now with the dialog looking exactly like the screenshot I posted originally.     </p>
  
  <p><a href="https://i.stack.imgur.com/a5OOf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a5OOf.png" alt="enter image description here"></a></p>