1

I'm following this guidde: http://iphonedevlog.wordpress.com/2013/12/19/using-phonegap-3-3-cli-on-mac-os-x-mavericks-to-build-ios-projects/

So when I try cordova emulate ios it shows ** BUILD SUCCEEDED **but iOS Simulator shows a black screen forever, and after some minutes console prints this:

Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Simulator session timed out." UserInfo=0x7fe1b3f31f00 {NSLocalizedDescription=Simulator session timed out.}
Error: /Users/me/Desktop/TestAppIos/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:755:16)
    at Process.ChildProcess._handle.onexit (child_process.js:822:5)

I'm on Macbook Retina 13" with Mavericks.

Any idea? I'm just trying to build a helloworld and emulate on android and ios.

2

2 Answers 2

0

This error has been reported multiple times on stack overflow. Every time, it has been caused by DYLD_INSERT_LIBRARIES being set. Try deleting /etc/launchd.conf and rebooting. If the issue persists, please look in ~/Library/Logs/DiagnosticReports for any launchd_sim crashes and provide one of those as reference.

2
  • ls: /etc/launchd.conf: No such file or directory Oct 15, 2014 at 18:48
  • @Per If you are experiencing this issue (timeout error reported while waiting for the sim to boot) and you don't have DYLD_INSERT_LIBRARIES set, more information is needed as I stated above. Please look for launchd_sim crash logs. Oct 15, 2014 at 23:25
0

What might work is to launch the simulator from Xcode before giving the command

cordova emulate ios

This worked (and still works) for me when I had exactly the same error message. I'm not claiming it will work in all cases.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.