> For the complete documentation index, see [llms.txt](https://chndth.gitbook.io/ionic-taxi-app-setup-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chndth.gitbook.io/ionic-taxi-app-setup-doc/initial-version/android-setup/ios-setup.md).

# Ios Setup

## Capacitor iOS Documentation

Capacitor features a native iOS runtime that enables developers to communicate between JavaScript and Native Swift or Objective-C code.

Capacitor iOS apps are configured and managed with Xcode and [CocoaPods](https://cocoapods.org/).

### iOS Support[​](https://capacitorjs.com/docs/ios#ios-support) <a href="#ios-support" id="ios-support"></a>

iOS 13+ is supported. Xcode 13+ is required (see [Environment Setup](https://capacitorjs.com/docs/getting-started/environment-setup#ios-development)). Capacitor uses [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview), not the deprecated [UIWebView](https://developer.apple.com/documentation/uikit/uiwebview).

### Adding the iOS Platform[​](https://capacitorjs.com/docs/ios#adding-the-ios-platform) <a href="#adding-the-ios-platform" id="adding-the-ios-platform"></a>

First, install the `@capacitor/ios` package.

```
npm install @capacitor/ios
```

Copy

Then, add the iOS platform.

```
npx cap add ios
```

Copy

### Opening the iOS Project[​](https://capacitorjs.com/docs/ios#opening-the-ios-project) <a href="#opening-the-ios-project" id="opening-the-ios-project"></a>

To open the project in Xcode, run:

```
npx cap open ios
```

Copy

Alternatively, you can open Xcode manually by running:

```
open ios/App/App.xcworkspace
```

Copy

### Running Your App[​](https://capacitorjs.com/docs/ios#running-your-app) <a href="#running-your-app" id="running-your-app"></a>

You can either run your app on the command-line or with Xcode.

#### Running on the Command-Line[​](https://capacitorjs.com/docs/ios#running-on-the-command-line) <a href="#running-on-the-command-line" id="running-on-the-command-line"></a>

To run the project on a device or simulator, run:

```
npx cap run ios
```

Copy

The command will prompt you to select a target. [Learn more about `run`](https://capacitorjs.com/docs/cli/commands/run).

#### Running in Xcode[​](https://capacitorjs.com/docs/ios#running-in-xcode) <a href="#running-in-xcode" id="running-in-xcode"></a>

In Xcode, first select the device or simulator and then click the play button to run your app.

![Running your app](https://capacitorjs.com/docs/assets/images/running-73a1e8445eed0b82f25162277223276e.png)

### Troubleshooting[​](https://capacitorjs.com/docs/ios#troubleshooting) <a href="#troubleshooting" id="troubleshooting"></a>

If you encountered any issues while getting started, you can consult the [iOS Troubleshooting Guide](https://capacitorjs.com/docs/ios/troubleshooting). Feel free to [open a discussion](https://github.com/ionic-team/capacitor/discussions/) if you need help.

### Next steps[​](https://capacitorjs.com/docs/ios#next-steps) <a href="#next-steps" id="next-steps"></a>

You are now ready to continue developing and building your app. Use the various APIs available, Capacitor or Cordova plugins, or custom native code to build out the rest of your app.

### Further Reading[​](https://capacitorjs.com/docs/ios#further-reading) <a href="#further-reading" id="further-reading"></a>

Follow these guides for more information on each topic:

<br>
