$ ionic emulate ios


#1

Hi guys, i am facing this issue running the emulator 1st time, any ideas how to resolve the error

** BUILD SUCCEEDED **

No target specified for emulator. Deploying to iPhone-6 simulator
An error was encountered processing the command (code=146):
Exception encountered connecting to CoreSimulatorBridge: Unable to connect to CoreSimulatorBridge
ENOENT: no such file or directory, stat '/Users/agha.asim/Library/Logs/CoreSimulator/4B702641-6BF8-4A88-8991-55E624FFEE01/system.log’
Error code 1 for command: ios-sim with args: launch,/Users/agha.asim/Hazzir/platforms/ios/build/emulator/Hazzir.app,–devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,–stderr,/Users/agha.asim/Hazzir/platforms/ios/cordova/console.log,–stdout,/Users/agha.asim/Hazzir/platforms/ios/cordova/console.log,–exit
Error: /Users/agha.asim/Hazzir/platforms/ios/cordova/run: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)


#2

Do you have ios-sim installed?


#3

Yes, I installed the ios-sim

Failed to find the bower component “ionic-platform-web-client”.
Are you sure it exists? (CLI v1.6.5)

Your system information:

Cordova CLI: 5.3.3
Gulp version: CLI version 3.9.0
Gulp local:
Ionic CLI Version: 1.6.5
Ionic App Lib Version: 0.3.9
ios-deploy version: Not installed
ios-sim version: 5.0.2
OS: Mac OS X Yosemite
Node Version: v4.1.2
Xcode version: Xcode 6.1 Build version 6A1042b