Ionic xcode Version 8.3.3 (change default simulator)

Hi all !

When I’m testing any app in simulator, its running in iphone SE simulator by default. How can I change to Iphone 7 for example ? I can not find any solution …

Look at --list and --target here:
https://ionicframework.com/docs/cli/cordova/emulate/

Sujan12, good day ! Thanks, I will try run cordova emulate ios --target=“iPhone-5s, 10.3”, but see error …

Error: Cannot read property ‘name’ of undefined

is it possible ?

Anything is possible.

Post your ionic info and ionic cordova emulate --list output please.

global packages:

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

local packages:

@ionic/app-scripts              : 1.3.8
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms               : ios 4.4.0
Ionic Framework                 : ionic-angular 3.4.2

System:

Node       : v6.10.3
OS         : macOS Sierra
Xcode      : Xcode 8.3.3 Build version 8E3004b 
ios-deploy : not installed
ios-sim    : 6.0.0 
npm        : 3.10.10 

Available ios virtual devices:


Apple-Watch-38mm, watchOS 3.2
Apple-Watch-42mm, watchOS 3.2
iPhone-5, 10.3
iPhone-5s, 10.3
iPhone-6, 10.3
iPhone-6-Plus, 10.3
iPhone-6s, 10.3
iPhone-6s-Plus, 10.3
iPhone-7, 10.3
iPhone-7-Plus, 10.3
iPhone-SE, 10.3
iPad-Air, 10.3
iPad-Air-2, 10.3
iPad--5th-generation-, 10.3
iPad-Pro--9-7-inch-, 10.3
iPad-Pro, 10.3
iPad-Pro--12-9-inch---2nd-generation-, 10.3
iPad-Pro--10-5-inch-, 10.3
Apple-TV-1080p, tvOS 10.2
Apple-Watch-Series-2-38mm, watchOS 3.2
Apple-Watch-Series-2-42mm, watchOS 3.2

Both looks good :confused:

What you are using here is effectively Cordova, not Ionic. To get this resolved you could ask at the Cordova Slack (http://slack.cordova.io) or create an issue with Cordova at http://issues.cordova.io.

Sujan12, good day ! What do you meen …

What you are using here is effectively Cordova, not Ionic.

When you run a command that start with ionic cordova ... you are running Ionic CLI and tell it “I need this “cordova” command” which makes Ionic CLI run some of its own logic, but then effectively hands over to cordova, which is the Cordova CLI. This then does its job and returns to ionic when ready.

The error you are getting, happens while cordova is running which is why you get the same error when you run cordova emulate ios --target="iPhone-5s, 10.3".

But it also means Ionic can do nothing to solve it. You should post an issue at the issue tracker of Cordova so they know something is wrong and breaking.

Sujan12, thanks a lot, I will try …

p.s I can not find on forum any decisions about this. Maybe you know something how to do with this ? On Android I use cordova-plugin-crosswalk-webview and it working fine, but on Ios I see always such error …

Initial problem is probably caused by this:

https://issues.apache.org/jira/browse/CB-12888
https://github.com/phonegap/ios-sim/issues/209

Sujan12, thanks a lot, I will try !