ios - remotebuild 无法在 iphone 6 设备上部署 cordova 应用程序 - iphone 5 设备工作正常

标签 ios cordova visual-studio-cordova

我在 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.

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

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

最佳答案

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

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

关于ios - remotebuild 无法在 iphone 6 设备上部署 cordova 应用程序 - iphone 5 设备工作正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31618600/

相关文章:

iphone - Objective-C : Is there a difference between these two statements?

c# - C#中删除JavaScript创建的本地存储的方法

ios - Cordova:在没有 "-all_load"的情况下构建

visual-studio - Cordova Windows 10 UWP 应用程序黑屏

javascript - 未捕获的类型错误 : Cannot read property 'appendChild' of null with onsen ui

ios - 自动引用计数和综合属性

iphone - Objective-C/iOS : Converting an array of objects to JSON string

cordova - 从相机加载图像内容到文件

javascript - 构建空白 Cordova 应用程序会出现多个错误

ios - 生成带有图像的 UIView