NativeScript / NativeScript/NativeScript
Process crashed when using --justlaunch option for iOS
Nobody has claimed this yet.
- 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.

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
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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