Ionic模拟ios:会话无法启动 [英] Ionic emulate ios: Session could not be started

查看:148
本文介绍了Ionic模拟ios:会话无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在ios上模拟我的应用程序,但不强制适用于我。我一直在搜索两天有关错误,我找到的所有解决方法都不适用于我。我运行OSX Yosemite,Xcode 6.1.1,Cordova 4.2.0,Ionic 1.3.8,Ios-Sim 3.1.1。这是输出:

  ** BUILD SUCCEEDED ** 

2015-03-01 20: 07:08.576 ios-sim [5970:3191481] stderrPath:/path/to/myapp/platforms/ios/cordova/console.log
2015-03-01 20:07:08.577 ios-sim [5970:3191481 ] stdoutPath:/path/to/myapp/platforms/ios/cordova/console.log
无法启动会话:错误域= DTiPhoneSimulatorErrorDomain代码= 2模拟器会话超时。 UserInfo = 0x7ff3d370ff10 {NSLocalizedDescription =模拟器会话超时}
错误:/ path / to / myapp / platforms / ios / cordova / run:命令失败,退出代码1
在ChildProcess.whenDone(/ usr /local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
在ChildProcess.emit(events.js:98:17)
at maybeClose (child_process.js:833:5)

$ b(child_process.js:766:16)
在Process.ChildProcess._handle.onexit
$ b

我真的不知道该怎么办。我已经尝试了所有的worarounds我已经在互联网上找到:更改文件权限,运行为sudo,重置设置模拟器,打开xcode之前模拟我的应用程序,重新安装cordova等,没有人工作。希望你能帮助我,伙计们!

解决方案



我改变了使用whoami命令的目录上的权限



这对我似乎有效:

  sudo chown -R $(whoami)〜/ Documents / yourdirectory 


I'm trying to emulate my application on ios but nothig works for me. I've been searching for two days about the error and all workarounds i've found doesn't work for me. I'm running OSX Yosemite, Xcode 6.1.1, Cordova 4.2.0, Ionic 1.3.8, Ios-Sim 3.1.1. This is the ouput:

** BUILD SUCCEEDED **

2015-03-01 20:07:08.576 ios-sim[5970:3191481] stderrPath: /path/to/myapp/platforms/ios/cordova/console.log
2015-03-01 20:07:08.577 ios-sim[5970:3191481] stdoutPath: /path/to/myapp/platforms/ios/cordova/console.log
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Simulator session timed out." UserInfo=0x7ff3d370ff10 {NSLocalizedDescription=Simulator session timed out.}
Error: /path/to/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:766:16)
    at Process.ChildProcess._handle.onexit (child_process.js:833:5)

I really don't know what to do. I already tried all worarounds I've found on internet: change files permissions, running as sudo, reset settings of emulator, open xcode before emulating my app, reinstalling cordova, etc, etc. No one works. Hope you can help me, guys! If you need further information, please let me know.

Thank you in advance!

解决方案

I changed the permissions on directories it was using the whoami command

This seemed to work for me:

sudo chown -R $(whoami) ~/Documents/yourdirectory

这篇关于Ionic模拟ios:会话无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆