# Creating an iPhone run configuration [edit]

This Help topic describes how to create a new run configuration for in iPhone project so that you can preview the project on your iPhone.

## Introduction

You can preview an iPhone project on your actual iPhone. Before you can view your app on your iPhone, you'll need to create an iPhone run configuration. The instructions below describe how to create a new run configuration for an iPhone project.

## Instructions

To create a new run configuration for an iPhone project:

1. From the Run button , select Run... to open a Run configurations window (shown below).

2. From the tree on the left side of the screen, select iPhone and click the New launch configuration button to go to the new iPhone run configuration screen (shown below).

3. In the Name field, type a name for the configuration.
4. From the Project drop-down list, select your project.
5. From the Main HTML File drop-down list, select the HTML start page for the project.
6. In the Web Server Port field, edit the port number if necessary.
7. Click Run to finish creating the configuration and to run your application.

After you have created a run configuration for your project, you can simply click the Run button to run the project in the future.

## Related Topics

- About Apple iPhone development
- Installing the iPhone plug-in
- Previewing an iPhone sample project
- Creating a new iPhone project
- Viewing a project on your iPhone
- Using console logging for the iPhone

Retrieved from "http://aptana.com/docs/index.php/Creating_an_iPhone_run_configuration"

Category: AptanaHelp