Problems to emulate after xCode update

After update my xCode from 10.1 to 10.2, I have problem to emulate the app on ios emulators.

After I run $ ionic cordova emulate ios -l, I get this:

BUILD SUCCEEDED
[cordova]  
[cordova]  No target specified for emulator. Deploying to undefined simulator
[cordova]  Device type "com.apple.CoreSimulator.SimDeviceType.undefined" could not be found.
[ERROR] An error occurred while running subprocess cordova.
$ ionic cordova emulate ios --list
Available ios virtual devices:

So I’ve did
$ cd platforms/ios/cordova/ && npm i ios-sim@latest

But, I keep getting No target specified for emulator. Deploying to undefined simulator, just like before.

I also tried instal the next version of ios-sim, but I think it’s compatible.

$ ionic info

Ionic:

   ionic (Ionic CLI)  : 4.12.0 (/Users/myuser/.nvm/versions/node/v8.12.0/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.3

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : ios 4.5.5
   Cordova Plugins       : no whitelisted plugins (13 plugins total)

System:

   Android SDK Tools : 26.1.1 (/Users/myuser/Library/Android/sdk/)
   ios-deploy        : 1.9.4
   ios-sim           : ios-sim/9.0.0-dev.1 darwin-x64 node-v8.12.0
   NodeJS            : v8.12.0 (/Users/myuser/.nvm/versions/node/v8.12.0/bin/node)
   npm               : 6.4.1
   OS                : macOS Mojave
   Xcode             : Xcode 10.2 Build version 10E125

You could try upgrading Cordova CLI to 9.x and cordova-ios to 5.0.0 - maybe this helps.

I am experiencing the same errors with Cordova CLI 9 and cordova -ios 5.0.0

I think this is an issue with ios-sim and related to this issue

Hey, I’ve update cordova CLI to 9.x, then I’ve removed the platform and added it again, I keep receiving:

** BUILD SUCCEEDED **
[cordova]  
[cordova]  No target specified for emulator. Deploying to undefined simulator

$ ionic info

Ionic:

   ionic (Ionic CLI)  : 4.12.0 (/Users/mysuser/.nvm/versions/node/v8.12.0/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.3

Cordova:

   cordova (Cordova CLI) : 9.0.0
   Cordova Platforms     : ios 5.0.0
   Cordova Plugins       : no whitelisted plugins (11 plugins total)

System:

   Android SDK Tools : 26.1.1 (/Users/myuser/Library/Android/sdk/)
   ios-deploy        : 1.9.4
   ios-sim           : 7.0.0
   NodeJS            : v8.12.0 (/Users/myuser/.nvm/versions/node/v8.12.0/bin/node)
   npm               : 6.4.1
   OS                : macOS Mojave
   Xcode             : Xcode 10.2 Build version 10E125

Experiencing the same issue. Tried updating ios-sim and also removing and adding iOS platform again. Nothing helped

Same here and nothing seems to fix it …

It is a known issue with ios-sim. You can follow the issue here.

solution is here, while the guys from ios-sim fix it