1

I'd like to be able to pass some command line arguments to my command line tool program in Xcode. Where do I add these? I'd like to do it in the IDE rather than simply do it manually from the command line.

1 Answer 1

2

I've found this in the help file:

Running Your Application with Arguments

Configure a scheme with runtime arguments for your application when you run it in Xcode. The Run action in the scheme editing dialog determines what happens when you choose Product > Run.

From the Scheme toolbar menu, choose a scheme.

From the same menu, choose Edit Scheme to display the scheme dialog.

In the left column, select Run.

To specify runtime arguments, click Arguments and then click the Add button.

Click OK.

Click the Run button or choose Product > Run.

Solved my problem :-)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.