Running Your Application with Arguments
- Steps
-
From the Scheme toolbar menu, choose a scheme.
-
From the same menu, choose Edit Active Scheme to display the scheme dialog.
-
In the left column, select Run.
-
To specify runtime arguments, click Arguments.
-
Click OK.
-
Click the Run button or choose Product > Run.
Specify runtime arguments for your application when you run it in Xcode.
Schemes contain a Run action that affects what happens when you choose Product > Run. To specify runtime arguments, click the Arguments tab. You can specify arguments passed on launch, environment variables, and modules for which to load debug symbols.