Process crashed when using --justlaunch option for iOS
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
- [X] I have searched the existing issues as well as StackOverflow and this has not been posted before
- [X] This is a bug report
- [X] I agree to follow this project's Code of Conduct
Attached is the full report for the crash: iOS crash.txt
Hello, thanks for reporting this. What steps should one follow to reproduce it? Also, can you check if this problem also occurs on real devices?
Hi @CatchABus, here is what I did:
- create a new NativeScript Angular project
- prepare the ios environment
-
test init -
ns test ios --emulator --justlaunch
Then I got the error shown in the screenshot above. Please note that I am using an M1 Mac.