An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=163):


#1

Hello,

I am getting same error, i wan’t to run ios app on simulator but i am getting below errors:
Please help me.

usr/bin/codesign --force --sign - --timestamp=none /Users/i-Phone15/Desktop/Anil\ Thummar\ Data/Test/OKOK/MYTest/platforms/ios/build/emulator/MyApp.app

** BUILD SUCCEEDED **

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

An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=163):
Invalid device state
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=163):
Invalid device state
Error: ENOENT: no such file or directory, stat ‘/Users/i-Phone15/Library/Logs/CoreSimulator/A50B9804-951C-4B9B-9D20-54DB5FD6706D/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 emulate ios (exit code 1).

My Ionic Infor

iMac:MYTest i-Phone15$ ionic info

global packages:

    @ionic/cli-utils : 1.5.0
    Cordova CLI      : not installed
    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               : none
    Ionic Framework                 : ionic-angular 3.5.3

System:

    Node       : v6.11.1
    OS         : macOS Sierra
    Xcode      : Xcode 8.0 Build version 8A218a 
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 3.10.10

Can't run the platform command
#2

How can you build for iOS with no Cordova CLI and Platform installed?
How are you building the app?


#3

ok ,thanks for the replay,
than how to installed CLI and Cordova Platform on Mac OS?


#4

I asked how you can build without this installed. I don’t understand how this is possible at all. Which commands did you run on the command line to get there?

(Run npm install -g cordova to install Cordova.)


#5

ok, i had do it and its work perfectly,
Thanks man,