【问题标题】:remotebuild fails to deploy cordova application on iphone 6 device - iphone 5 device works fineremotebuild 无法在 iphone 6 设备上部署 cordova 应用程序 - iphone 5 设备工作正常
【发布时间】:2015-07-24 19:43:12
【问题描述】:

我在 Visual Studio 2015 中使用新的 Cordova 工具。mac 构建服务器正在运行 remotebuild 代理。我可以使用模拟器或成功部署到 iPhone 5 设备上。

当我尝试部署到 iPhone 6 Plus 设备时,remotebuild 代理崩溃并显示此堆栈跟踪:

GET /cordova/build/17124/deploy 404 5053.994 ms - 52
****** Server will shutdown due to uncaught error ****** 
[Error: Can't set headers after they are sent.]
Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11)
    at ServerResponse.header (/usr/local/lib/node_modules/remotebuild/node_modules/express/lib/response.js:700:10)
    at ServerResponse.send (/usr/local/lib/node_modules/remotebuild/node_modules/express/lib/response.js:154:12)
    at ServerResponse.json (/usr/local/lib/node_modules/remotebuild/node_modules/express/lib/response.js:240:15)
    at ChildProcess.<anonymous> (/Users/elliot/.taco_home/node_modules/taco-remote-lib/1.0.0/node_modules/taco-remote-lib/ios/ios.js:172:33)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
****** Performing server shutdown procedures.

我确定配置文件设置正确。

有其他人经历过这种情况并找到解决方法吗?

【问题讨论】:

  • 我遇到了同样的错误。你能解决这个问题吗?

标签: ios cordova visual-studio-cordova


【解决方案1】:

如果您仔细查看 VS 输出,您会看到一条类似于“应用程序验证失败”的消息,抱怨他们的配置文件。您确定您的 iPhone 6 plus 上安装了正确的配置文件吗?

感谢您报告服务器端的崩溃。我们这边可能会出现问题,我们可能会不小心尝试对同一个请求做出两次响应,这是一个错误并导致服务器崩溃。

【讨论】:

    猜你喜欢
    • 2015-04-29
    • 1970-01-01
    • 2015-09-18
    • 2023-03-07
    • 1970-01-01
    • 1970-01-01
    • 2012-06-10
    • 1970-01-01
    • 2015-11-06
    相关资源
    最近更新 更多