Ionic emulate Ios fails to run The session does not open my app -


ionic emulate ios failed on mac os yosemite. have cases ios device emulated, shortly after terminal console shoots error message below.

** build succeeded **  no target specified emulator. deploying iphone-6 simulator error encountered processing command (code=146): invalid device state error encountered processing command (code=146): exception encountered connecting coresimulatorbridge: unable connect coresimulatorbridge enoent, no such file or directory '/users/yay/library/logs/coresimulator/2caa2c39-7f22-4af2-bbde-86609188f37c/system.log' error code 1 command: ios-sim args: launch,/users/yay/code/myapp/platforms/ios/build/emulator/myapp.app,--devicetypeid,com.apple.coresimulator.simdevicetype.iphone-6,--stderr,/users/yay/code/myapp/platforms/ios/cordova/console.log,--stdout,/users/yay/code/myapp/platforms/ios/cordova/console.log,--exit error: /users/yay/code/myapp/platforms/ios/cordova/run: command failed exit code 2     @ childprocess.whendone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)     @ childprocess.emit (events.js:110:17)     @ maybeclose (child_process.js:1015:16)     @ process.childprocess._handle.onexit (child_process.js:1087:5) 

the issue because used sudo create and/or build project.

just input these commands (without $ of course):

1) remove sudo

$ sudo ionic platform remove ios 

2) add ios without sudo

$ ionic platform add ios 

3) run ios emulator

$ ionic emulate ios 

source: https://github.com/driftyco/ionic/issues/4052 (rajkotecha's comment)


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -