2014-10-29 65 views
1

我已經運行ionic emulate ios離子IOS-SIM拋出錯誤

2014-10-29 10:21:52.540 ios-sim[1992:507] stderrPath:  /Users/***/Desktop/apps/myApp/platforms/ios/cordova/console.log 
2014-10-29 10:21:52.541 ios-sim[1992:507] stdoutPath: /Users/***/Desktop/apps/myApp/platforms/ios/cordova/console.log 
Usage of '--family' is deprecated in 3.x. Use --devicetypeid instead. 
Usage of '--retina' is deprecated in 3.x. Use --devicetypeid instead. 
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Simulator session timed out." UserInfo=0x7f9b09709470 {NSLocalizedDescription=Simulator session timed out.} 
Error: /Users/***/Desktop/apps/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:756:16) 
at Process.ChildProcess._handle.onexit (child_process.js:823:5) 

如果出現以下錯誤這開始發生時,我升級的Xcode 6

+0

您是否最近更新了Cordova? 'sudo npm update cordova'和'sudo npm update ios-sim'應該確保它們是最新的。 – 2014-10-29 17:23:35

+0

這就是沒有解決我的問題 – CMP 2014-10-30 08:09:12

回答

0

會議無法啓動:錯誤 域= DTiPhoneSimulatorErrorDomain Code = 2「Simulator session timed out。」的UserInfo = 0x7f9b09709470 {NSLocalizedDescription =模擬器 會話超時。}

此錯誤指示的Xcode(或任何正在打印錯誤)正在等待的IOS Simulator.app啓動和引導特定模擬裝置,但它從來沒有收到模擬設備完成啓動的通知。

嘗試在ssh會話或LaunchDaemon中運行時發生了類似的問題(但您應該可以在LaunchAgent中正常運行)。