Having troubles with "$ sudo ionic emulate ios", doesnt work?


#1

After typing “$ sudo ionic emulate ios” something seems to go wrong, have tried to change the permissions on the project folder, and uninstalling and installing ios-sim.

I get this at the end after typing $ sudo ionic emulate ios:

** BUILD SUCCEEDED **

2014-11-26 21:02:51.817 ios-sim[13563:507] stderrPath: /Users/tedpettersson/Sites/myApp/platforms/ios/cordova/console.log
2014-11-26 21:02:51.817 ios-sim[13563:507] stdoutPath: /Users/tedpettersson/Sites/myApp/platforms/ios/cordova/console.log
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 “Simulator session timed out.” UserInfo=0x7f9b4253d730 {NSLocalizedDescription=Simulator session timed out.}
Error: /Users/tedpettersson/Sites/myApp/platforms/ios/cordova/run: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)

Anybody having the same troubles?


#2

and why you are running it as root user ?

try to execute it without the sudo