Sudo ionic emulate ios : Unable to connect to CoreSimulatorBridge


#1

Hello!

so… i can’t emulate an ionic project, serve works.
System: xcode 6.4 ionic/cordova/ios-sim last version
What i did
ionic start test
cd test
sudo ionic platform add ios(can’t go to the next step without sudo here)
sudo ionic emulate ios

Result:
** 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 '/Users/brunoferreiradasilva/Library/Logs/CoreSimulator/523F1845-F99D-42B8-8CAB-BB328DBFB9FF/system.log’
Error code 1 for command: ios-sim with args: launch,/Users/brunoferreiradasilva/test/platforms/ios/build/emulator/test.app,–devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,–stderr,/Users/brunoferreiradasilva/test/platforms/ios/cordova/console.log,–stdout,/Users/brunoferreiradasilva/test/platforms/ios/cordova/console.log,–exit
Error: /Users/brunoferreiradasilva/test/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:134:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)


#2

I’m also having this issue