CLI 3.12.0: "Failed to install the requested application" on emulate


#1

After updating to the cli v 3.12.0 if I try to run my app in the simulator with the following command
ionic cordova emulate ios --target="iPhone-8" -l -c
the app builds correctly, the simulator show up but (i guess) the process could no be attached to it, and therefore this error occurs:

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.

If I try to run the app from xcode (9.0 (9A235)) it builds and runs smoothly in the iPhone 8 Simulator.

I tried to change device target ( I tried the iPhone 7 / 7 plus / 8 / 8 plus / X ) with no success.
I run OSX Sierra on a late 2013 MBP.
furthermore I tried all the above in a fresh app with no success.


#2

I am also seeing this issue


#3

Have you tried running just ionic cordova emulate ios -l -c? Or without the -l -c even?

What is your ionic info output?


#4

Sorry I forgot to post it, here it is

$ ionic info

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.12.0
    ionic (Ionic CLI) : 3.12.0

global packages:

    cordova (Cordova CLI) : 6.5.0 

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : ios 4.3.1
    Ionic Framework    : ionic-angular 3.6.0

System:

    ios-deploy : 1.9.0 
    ios-sim    : 5.0.13 
    Node       : v8.2.1
    npm        : 5.3.0 
    OS         : macOS Sierra
    Xcode      : Xcode 9.0 Build version 9A235 

Misc:

  backend : legacy


Unfortunately the issue happens with any kind of combination of command options -l -c --target.


#5

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.12.0
ionic (Ionic CLI) : 3.12.0

global packages:

cordova (Cordova CLI) : 7.0.1
Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.2.3 ios 4.5.0
Ionic Framework    : ionic-angular 3.6.0

System:

Node  : v6.10.3
npm   : 3.10.10
OS    : macOS Sierra
Xcode : Xcode 9.0 Build version 9A235

Misc:

backend : pro

#6

These all can be updated.

Same here.


#7

cool, can you please provide the syntax to do so?

edit.
Nevermind. google did the trick.
for who is interested in how to update
sudo npm install -g cordova
npm install @ionic/app-scripts@latest
and you’re good to go.

But this unfortunately did not solve the problem :frowning:


#8

Were you able to fix this problem? I am having the same problem.


#9

The issue “solved” itself by updating the cli, it came back another couple of times by updating the cli.
I never found the actual cause though. So if anybody finds it, I’d be more than glad to hear about it.