** BUILD SUCCEEDED **
No target specified for emulator. Deploying to iPhone-6 simulator
2015-04-07 18:15:27.375 ios-sim[39459:470874] stderrPath: /Users/Michael/todo/platforms/ios/cordova/console.log
2015-04-07 18:15:27.375 ios-sim[39459:470874] stdoutPath: /Users/Michael/todo/platforms/ios/cordova/console.log
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Timed out waiting for device to boot" UserInfo=0x7fe67241c760 {NSLocalizedDescription=Timed out waiting for device to boot}
Error code 1 for command: ios-sim with args: launch,/Users/Michael/todo/platforms/ios/build/emulator/todo.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/Michael/todo/platforms/ios/cordova/console.log,--stdout,/Users/Michael/todo/platforms/ios/cordova/console.log,--exit
Error: /Users/Michael/todo/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:131: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)
This happens with ionic emulate ios cannot seem to figure out why or how to fix.
I’m also having the same issue. It was working fine yesterday but for some reason only the ios emulator opens and the app doesn’t load now when trying a new project.
/Users/haapsalutudengid/Desktop/ionicprojects/test/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
ERROR : No emulator images (avds) found.
1. Download desired System Image by running: /Users/haapsalutudengid/Library/Android/sdk/tools/android sdk
2. Create an AVD by running: /Users/haapsalutudengid/Library/Android/sdk/tools/android avd
HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver
Error: /Users/haapsalutudengid/Desktop/ionicprojects/test/platforms/android/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:131: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)
** BUILD SUCCEEDED **
No target specified for emulator. Deploying to iPhone-6 simulator
2015-04-23 18:50:48.044 ios-sim[991:15409] stderrPath: /Users/haapsalutudengid/Desktop/ionicprojects/test/platforms/ios/cordova/console.log
2015-04-23 18:50:48.045 ios-sim[991:15409] stdoutPath: /Users/haapsalutudengid/Desktop/ionicprojects/test/platforms/ios/cordova/console.log
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Timed out waiting for device to boot" UserInfo=0x7f8a7a51ba40 {NSLocalizedDescription=Timed out waiting for device to boot}
Error code 1 for command: ios-sim with args: launch,/Users/haapsalutudengid/Desktop/ionicprojects/test/platforms/ios/build/emulator/test.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/haapsalutudengid/Desktop/ionicprojects/test/platforms/ios/cordova/console.log,--stdout,/Users/haapsalutudengid/Desktop/ionicprojects/test/platforms/ios/cordova/console.log,--exit
Error: /Users/haapsalutudengid/Desktop/ionicprojects/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:131: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)
Ionic info:
OS: Mac OS X Yosemite
Node Version: v0.12.2
Cordova CLI: 5.0.0
Ionic Version: 1.0.0-rc.4
Ionic CLI Version: 1.3.20
Xcode version: Xcode 6.3.1 Build version 6D1002
ios-sim version: 3.1.1
ios-deploy version: 1.5.0
I had the same problem, but now it’s been fixed.
I figured out that the issue was occurred due to the permission issue.
So, I’ve given Read&Write permissions to the whole folders and files from the root including sub folders and files.
Now it runs without any error.
I am not sure if this helps - but I have seemingly fixed the problem, I seemed to have some permissions issue even when using sudo
So i ran the following command :
sudo chown -R $(whoami) ~/Documents/mobileapps
mobileapps is the directory where I funnily enough store my mobile apps But the ios-Simulator is now working and showing my blank app when I run the cordova emulate ios command
I had the same problem and it was related to installing some npm packages with sudo. Problem was solved once I changed the ownership of .cordova and its subdirectories.