Ionic emulate ios - target device errors

I can run ionic emulate ios and let the cli choose the emulator it works.

When i try to target a specific device I get the following errors:

ionic cordova emulate ios --target=“iPhone-5s, 10.2” -l -c -s

Error: Cannot read property 'name' of undefined

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova emulate ios --target "iPhone-5s,
        10.2" (exit code 1).

lobal packages:

@ionic/cli-utils : 1.4.0
Cordova CLI      : 7.0.1 
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts              : 1.3.0
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms               : android 6.2.3 ios 4.4.0
Ionic Framework                 : ionic-angular 3.0.1


Node       : v6.9.5
OS         : OS X El Capitan
Xcode      : Xcode 8.2.1 Build version 8C1002 
ios-deploy : not installed
ios-sim    : 5.0.13 
npm        : 3.10.10

running the same again with -verbose i get

Your plugins may be out of date.
TypeError: Cannot read property 'launchBrowser' of undefined
1 Like

This might be caused by this:

Although you are not really on the newest Xcode version, so I am not sure. Also the additional output with launchbrowser you get seems different.