Ionic emulate ios

Hello guys,

I have some problem with this http://ionicframework.com/getting-started/ tutorial, when I’m trying to run:

ionic emulate ios

I get:

Running emulate task...
Emulating app on platform ios
Generating config.xml from defaults for platform "ios"
Preparing ios project
Running on emulator for platform "ios" via command "/path/TestIonic/platforms/ios/cordova/run" --emulator
Error: An error occurred while emulating/deploying the ios project. ** BUILD FAILED **


The following build commands failed:
	Check dependencies
(1 failure)

at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cordova/src/emulate.js:67:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)

What is going on? Please help me, I’m newbie.

OK, I’ve made it.
I didn’t have

npm install -g ios-sim
1 Like

This got me as well when I first attempted the emulate command. I know the cli is built on top of cordova’s cli, which doesn’t include the iOS-sim, so maybe if they included this package when you install ionic, there wouldn’t be any confusion.