# Ionic serve --platform ios not working

**URL:** <https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346>\
**Category:** ionic-v3\
**Created:** [October 2, 2017, 12:46pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346 "2017-10-02T12:46:16Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabulous\_fab](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@fabulous\_fab](https://forum.ionicframework.com/u/fabulous_fab)\
**Post date:** [October 2, 2017, 12:46pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/1 "2017-10-02T12:46:16Z")

</div>

Hi,

When i want to specify a platform using ionic serve using -t or --platform parameter, still show android platorm.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [October 2, 2017, 12:56pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/2 "2017-10-02T12:56:45Z")

</div>

How are you displaying the app? Mobile device view in your browser? User agent?

Also post your `ionic info` output please.

---

<div class="post-metadata">

**Author:** ![fabulous\_fab](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@fabulous\_fab](https://forum.ionicframework.com/u/fabulous_fab)\
**Post date:** [October 2, 2017, 1:47pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/3 "2017-10-02T13:47:52Z")

</div>

I’m using it with chrome browser in windows with command **ionic serve --platform ios**

cli packages:

```
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2

```

System:

```
Node : v7.0.0
npm : 3.10.8
OS : Windows 7
```

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [October 2, 2017, 2:27pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/4 "2017-10-02T14:27:02Z")

</div>

Run `ionic info` in your project please. This is not enough information.

---

<div class="post-metadata">

**Author:** ![fabulous\_fab](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@fabulous\_fab](https://forum.ionicframework.com/u/fabulous_fab)\
**Post date:** [October 3, 2017, 3:52pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/5 "2017-10-03T15:52:48Z")

</div>

cli packages:

```
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2

```

global packages:

```
Cordova CLI : not installed
Gulp CLI : CLI version 3.9.1 Local version 3.9.1

```

local packages:

```
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.0

```

System:

```
Node : v7.0.0
npm : 3.10.8
OS : Windows 7
```

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [October 3, 2017, 3:53pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/6 "2017-10-03T15:53:46Z")

</div>

> [@fabulous\_fab](#):
>
> @ionic/app-scripts : 2.1.4

This is outdated and should be upgraded. Maybe the current version fixes that already.

---

<div class="post-metadata">

**Author:** ![fabulous\_fab](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@fabulous\_fab](https://forum.ionicframework.com/u/fabulous_fab)\
**Post date:** [October 3, 2017, 9:55pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/7 "2017-10-03T21:55:45Z")

</div>

the command is correct ?

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [October 3, 2017, 10:11pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/8 "2017-10-03T22:11:22Z")

</div>

The one you are using? Yeah, looks like what the docs tell you it should look like.

I personally don’t use that but make my browser send a iPhone or Android user agent via the dev tools mobile view. This automatically makes the design switch on reload.

---

<div class="post-metadata">

**Author:** ![fabulous\_fab](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@fabulous\_fab](https://forum.ionicframework.com/u/fabulous_fab)\
**Post date:** [October 3, 2017, 10:17pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/9 "2017-10-03T22:17:21Z")

</div>

how to achive this ?

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [October 3, 2017, 11:35pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/10 "2017-10-03T23:35:19Z")

</div>

What exactly? Open the dev tools, select the mobile view, change the device.

---

<div class="post-metadata">

**Author:** ![cooldp007](https://avatars.discourse-cdn.com/v4/letter/c/c4cdca/32.png) [@cooldp007](https://forum.ionicframework.com/u/cooldp007)\
**Post date:** [October 4, 2017, 4:20am UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/11 "2017-10-04T04:20:16Z")

</div>

Hi, @fabulous_fab

Please run ionic serve -l

and when your app open in browser in android platform at that time there is dropdown options on top right side for iphone and windows platform also

Hope this helpful

---

<div class="post-metadata">

**Author:** ![sergiomilici](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sergiomilici/32/100741_2.png) [@sergiomilici](https://forum.ionicframework.com/u/sergiomilici)\
**Post date:** [January 17, 2018, 3:43pm UTC](https://forum.ionicframework.com/t/ionic-serve-platform-ios-not-working/107346/12 "2018-01-17T15:43:17Z")

</div>

I’m having the same issue, I want to start in `ios` version and not add to the url `?ionicplatform=ios`. It always starts in android mode running `ionic serve --platform ios` or `ionic serve -t ios`.

> ionic info

cli packages: (/Volumes/HDD-750/Documents/projects/testxyz/node\_modules)

```
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0

```

global packages:

```
cordova (Cordova CLI) : 7.1.0 

```

local packages:

```
@ionic/app-scripts : 3.1.2
Cordova Platforms : android 6.3.0 ios 4.5.0
Ionic Framework : ionic-angular 3.9.2

```

System:

```
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2 
Node : v8.9.2
npm : 5.6.0 
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b 

```

Environment Variables:

```
ANDROID_HOME : /Volumes/HDD-750/Library/Android/sdk

```

Misc:

```
backend : pro

```
