NativeScript / NativeScript/nativescript-cli

Could not start device session when devices are disconnected

未关闭
#5,044 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug severity: medium
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.1.0

Describe the bug
Your device is connected with USB and WiFi. If you disconnect it from Wifi and USB and make a change, you will see error:
Unable to apply changes for device: d97ff43f5d13677a2fb09fc9b4da3066464ff5f4. Error is: Could not start device session.

To Reproduce

  1. tns create app --js
  2. tns test init
  3. tns test ios
  4. disconnect device from USB nad WiFi and make a change. You will see exception.

Expected behavior
should continue to work

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 tns create app --jstns test inittns test ios 重现失败,然后在进行更改之前断开设备与 USB 和 WiFi 的连接。跟踪报告的 “Could not start device session” 错误的处理;完成的标准是设备断开连接后,更改不再产生此异常。

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, javascript
领域
cli, mobile-dev, testing-qa
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。