> For the complete documentation index, see [llms.txt](https://enappd.gitbook.io/ionic-taxi-booking-app-starter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enappd.gitbook.io/ionic-taxi-booking-app-starter/setup-and-deployment-1/building-app-on-device.md).

# Building App on device

## Build the app for Android

{% embed url="<https://www.youtube.com/watch?v=6MRrep69cEM>" %}

Once you have modified your app as per your requirements, you can start building the app for Android. Add an android platform to the project by running

```
$ ionic cordova platform add android
```

This step will add an android platform to the project.&#x20;

{% hint style="info" %}
Previous step will require [Android Studio](https://developer.android.com/studio) preinstalled on your system. You can also install Android SDK without Android Studio, but that is not the recommended way.
{% endhint %}

Now prepare the platform for a build

```
$ ionic cordova prepare android
```

And run the app on your device or simulator by running

```
$ ionic cordova run android
```

{% hint style="info" %}
More information in [ionic documentation](https://ionicframework.com/docs/building/android)
{% endhint %}

## Build the app for iOS

{% embed url="<https://www.youtube.com/watch?v=Ap389xOSBj8>" %}

An iOS app can be built only on an Apple based system. Add an iOS platform to the project by running

```
$ ionic cordova platform add iOS
```

This step will add an iOS platform to the project.&#x20;

{% hint style="info" %}
Previous step will require [Xcode](https://itunes.apple.com/in/app/xcode/id497799835?mt=12) preinstalled on your system. You will also need an Apple developer license and proper provisioning profiles to build the app on device.
{% endhint %}

Now prepare the platform for a build

```
$ ionic cordova prepare ios
```

And run the app on your device or simulator by running

```
$ ionic cordova run ios
```

OR, run the app using **XCode** directly.

{% hint style="info" %}
More information in [ionic documentation](https://ionicframework.com/docs/building/android)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://enappd.gitbook.io/ionic-taxi-booking-app-starter/setup-and-deployment-1/building-app-on-device.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
