NativeScript / NativeScript/NativeScript

Process crashed when using --justlaunch option for iOS

Open
#10,010 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug-pending-triage
Dominant language
TypeScript
Stars
25.7k
Forks
1.7k
Avg merge
1d 5h
Merged PRs (30d)
35

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing ns test ios --emulator --justlaunch on macOS, comparing standalone execution with the Husky pre-commit task and noting the reported crash. Check the full dump from the issue's follow-up comment; done means the iOS test completes without the process being reported as crashed in either execution context.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, macos, typescript
Domain
cli, mobile, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.