NativeScript / NativeScript/NativeScript

Process crashed when using --justlaunch option for iOS

未关闭
#10,010 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug-pending-triage
主要语言
TypeScript
星标
25.7k
派生
1.7k
平均合并
1 天 5 小时
30 天内合并 PR
35

描述

Issue Description

When I run ns test ios --emulator --justlaunch with the --justlaunch option, the test will complete with no problem but the process will crash towards the end with the following error. It looks like the process was terminated too quick that the macOS thinks it's a crash instead of a graceful shutdown.

MicrosoftTeams-image (3)

Reproduction

But this is not always happening. It happens 100% when it's executed by Husky as the pre-commit task. However, when I run it as a standalone command most of the time it passes. In case it fails, I can run npm clean-install and then re-run ns test ios --emulator --justlaunch to fix the crash.

Relevant log output (if applicable)

Please see my next comment where I attach the full dump.

Environment

macOS for iPhone simulator. Android is fine.

Please accept these terms

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先在 macOS 上复现 ns test ios --emulator --justlaunch,将独立执行与 Husky 的 pre-commit 任务进行比较,并记录报告的崩溃。检查 issue 后续评论中的完整 dump;当 iOS 测试完成,且在两种执行上下文中都没有报告进程发生崩溃时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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