# Build IOS version

## INSTALL REQUIREMENT <a href="#install-requirement" id="install-requirement"></a>

You need the Xcode installed on your computer to build an iOS version of your application. You can install Xcode from the[ App store](https://developer.apple.com/xcode/).

Once you get Xcode installed you can add support for the IOS platform by running this command :

```
$ ionic cordova platform add ios
```

## RUN ON EMULATOR

After you've add IOS platform to your project, you can choose either to run the app on an **emulator** or a real device.

To run on an emulator :&#x20;

```
 $ ionic cordova emulate android
```

![](https://95637101-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPldOR-zLunAcbQ7rlx%2F-LPudfA2VbUm63Zy-9B2%2F-LPufhHZHTM3pIAfJLfv%2FScreen%20Shot%202018-10-28%20at%2012.27.51.png?alt=media\&token=8fc70f52-e943-4388-8654-db7897ddd0ba)

## RUN ON REAL DEVICE

To run your app on a real device , all you have to do is enable USB debugging and Developer Mode on your Iphone device, then run from your command line :

```
$ ionic cordova run ios --device
```

## BUILD FOR IOS

To build the APK file for the project, run the following command from your command line :&#x20;

```
 ionic cordova build ios
```

If you had any problem during the build process, you can re-run the command bellow and add a new flag \`\``--buildFlag='-UseModernBuildSystem=0'`\`

```
 ionic cordova build ios --buildFlag='-UseModernBuildSystem=0'
```

{% hint style="info" %}
**NOTE :** if you have any problem during building this app for Android or IOS, you can check the official [DOCS](https://ionicframework.com/docs/intro/deploying/) from IONIC for deploying an Ionic App, Or you can check this [Tutorial.](http://neilberry.com/blog/post.php?s=2017-01-07-how-to-run-your-ionic-app-on-real-devices)
{% endhint %}
