Ionic iOS simulator problem

I got the error after running the command sudo ionic cordova emulate ios

** BUILD SUCCEEDED **

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=53):
Error returned in reply: Connection interrupted
Software caused connection abort
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=53):
Error returned in reply: Connection interrupted
Software caused connection abort
Error: ENOENT: no such file or directory, stat '/Users/me/Library/Logs/CoreSimulator/16161BDA-1D7F-4868-A62E-03FCACE0B986/system.log'
terminal> ionic info

global packages:

    @ionic/cli-utils : 1.1.2
    Cordova CLI      : 7.0.0 
    Ionic CLI        : 3.1.2

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.1.2
    @ionic/cli-plugin-ionic-angular : 1.1.2
    Ionic Framework                 : ionic-angular 3.2.0

System:

    Node       : v7.10.0
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.2 Build version 8E2002 
    ios-deploy : 1.9.0 
    ios-sim    : 5.0.8 

terminal> ios-sim showdevicetypes

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

If I try to run the Simulator for iPhone SE, 6, 7 it works fine. Please provide me with instruction. And the /Users/me/Library/Logs/CoreSimulator/16161BDA-1D7F-4868-A62E-03FCACE0B986/system.log’ file is empty .

I tried to delete cordova iOS platform and add again for the project, but the same error.

1 Like

It doesn’t like the simulator it is trying to start:

Sorry , I didn’t get the point , can you describe what is the possible solution ? Thank you.

The link I posted contains the same error you mentioned. Scrolling down you will see many ways to solve the problem. Try them all.

1 Like

So am I facing above problem , i have tried to using the information given by marius bardan but still came out problem

thanks

No target specified for emulator. Deploying to iPhone-SE, 10.3 simulator

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=53):
Error returned in reply: Connection interrupted
Software caused connection abort
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=53):
Error returned in reply: Connection interrupted
Software caused connection abort
Error: ENOENT: no such file or directory, stat ‘/Users/longfit/Library/Logs/CoreSimulator/39DF2E8A-42F4-4411-BEE5-A2011A1F0F14/system.log’

[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova run ios (exit code 1).

ios-sim launch ./myApp.app --devicetypeid com.apple.CoreSimulator.SimDeviceType.iPhone-SE

it can work properly to emulator by ios-sim

1 Like

I have the same error:

No target specified for emulator. Deploying to iPhone-SE, 10.3 simulator
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=53):
Error returned in reply: Connection interrupted
Software caused connection abort
Error: ENOENT: no such file or directory, stat ‘/var/root/Library/Logs/CoreSimulator/EE6E1254-ED0F-4DD8-8565-248AA9863D46/system.log’

ionic info:

global packages:

@ionic/cli-utils : 1.5.0
Cordova CLI      : 7.0.1 
Ionic CLI        : 3.5.0

local packages:

@ionic/app-scripts              : 2.0.2
@ionic/cli-plugin-cordova       : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms               : ios 4.4.0
Ionic Framework                 : ionic-angular 3.5.3

System:

Node       : v8.0.0
OS         : macOS Sierra
Xcode      : Xcode 8.3.3 Build version 8E3004b 
ios-deploy : 1.8.5 
ios-sim    : 6.0.0 
npm        : 5.0.0 

Can anyone please help me?

A post was split to a new topic: iOS simulator: Error: ENOENT: no such file or directory, stat ’

This is because of sudo, Don’t use sudo