在ios仿真器中运行时,PhoneGap检查依赖性失败

时间:2014-03-04 14:11:20

标签: ios node.js cordova

我已经通过npm将ios-sim下载到项目中。我也安装了最新的Cordova。

当我尝试使用以下命令行运行我的示例程序(通过phonegap create 1example创建)时:

phonegap run ios

我收到以下错误消息(我将包含整个日志,为什么不包含)

The following build commands failed:
    Check dependencies
(1 failure)

更多详情:

2014-03-04 13:57:21.294 ios-sim[35061:507] 
stderrPath:/Users/oasis_weng/
Desktop/repos/1example/platforms/ios/cordova/console.log
2014-03-04 13:57:21.296 ios-sim[35061:507] stdoutPath: 
/Users/oasis_weng/Desktop/repos/2BPEase/platforms/ios/cordova/console.log
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Simulator 
session timed out." UserInfo=0x7ff18b410a40 
{NSLocalizedDescription=Simulator session timed out.}

这是日志(错误在上面):

[phonegap] detecting iOS SDK environment...
[phonegap] using the local environment
[phonegap] compiling iOS...
[phonegap] successfully compiled iOS app
soudaodieleba:2BPEase oasis_weng$ phonegap run ios
[phonegap] detecting iOS SDK environment...
[phonegap] using the local environment
[phonegap] compiling iOS...
[phonegap] successfully compiled iOS app
[phonegap] trying to install app onto device
[phonegap] no device was found
[phonegap] trying to install app onto emulator
[error] An error occurred while emulating/deploying the ios project. ** BUILD FAILED **

我没有修改这个项目中的任何文件。我该如何解决这个问题?

更多信息: 当我运行phonegap build ios时,它会成功编译。

0 个答案:

没有答案