nativescript-cli: Service exited due to signal: Killed: 9

From @burkeholland on March 4, 2016 14:58

NativeScript Version: 1.6.1

I’m unable to use Angular 2 with NativeScript at the moment. I’m using the template-hello-world-ng project.

The error I get isn’t terribly helpful…

Project successfully built.
Using  /Users/burkeholland/dev/burkeholland/my-app-name/platforms/ios/build/emulator/myappname.app
Starting iOS Simulator
Mar  4 08:15:53 --- last message repeated 1 time ---
Mar  4 08:15:53 hollandmac com.apple.CoreSimulator.SimDevice.FAE7B936-79CE-46C4-859F-65506A603837.launchd_sim[52478] (UIKitApplication:org.nativescript.myappname[0x71cd][52664]): Service exited due to signal: Killed: 9

Steps to recreate:

tns create my-app-name --template https://github.com/NativeScript/template-hello-world-ng

cd my-app-name && tns platform add ios

tns run ios --emulator

Copied from original issue: NativeScript/nativescript-angular#101

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 38 (19 by maintainers)

Most upvoted comments

Still present in 2.5. Creating simple ng app tns create DemoApp --ng and tns run ios drops the same error, have more then 10gb of memory free, so I would eliminate memory as issue in my case.

This is almost certainly memory related. I see this error much more frequently in low memory conditions on my dev machine.

I was just having a bunch of trouble with this but this seemed to resolve it. For some reason, it won’t allow me to run tns run ios --emulator, but the command below works.

tns run ios --justlaunch --watch

I was able to get this going without having to downgrade any of my dependencies as well. Below are some contents from my package.json file.

  "tns-ios": {
      "version": "2.2.1"
    }
  },
  "dependencies": {
    "@angular/common": "2.0.0-rc.4",
    "@angular/compiler": "2.0.0-rc.4",
    //other deps
    "nativescript-angular": "^0.3.0",
    "reflect-metadata": "^0.1.5",
    "tns-core-modules": "2.2.1"
  }, //....

This problem still exists and the issue should be reopened. Steps to reproduce:

tns create test-nativescript-angular --ng tns run ios --emulator

tns version 2.2.0 Xcode 7.3.1 simulator 8.4 and 9.3

I had same issue. tns run ios --emulator fail with Service exited due to signal: Killed: 9 error. But tns livesync ios --emulator --watch works for me. Can you guys try this command?

Ah, It seems that this issue solved from latest tns 😮


In my case, I tried tns run ios --emulator from sample project NativeScript/sample-Groceries. I noticed package.json was changed like this when I added platforms ios/android.

   "nativescript": {
     "id": "org.nativescript.groceries",
     "tns-ios": {
-      "version": "2.0.0"
+      "version": "2.1.0"
     },
     "tns-android": {
-      "version": "2.0.0"
+      "version": "2.1.1"
     }
   },
   "dependencies": {
     "tns-core-modules": "2.0.0"
   ...

Maybe, tns-core-modules’s version was mismatch? I upgraded tns-core-modules according to this guide upgrade-instructions#upgrading-tns-modules.

   "nativescript": {
     "id": "org.nativescript.groceries",
     "tns-ios": {
-      "version": "2.0.0"
+      "version": "2.1.0"
     },
     "tns-android": {
-      "version": "2.0.0"
+      "version": "2.1.1"
     }
   },
   "dependencies": {
-    "tns-core-modules": "2.0.0"
+    "tns-core-modules": "^2.1.0"
   ...

Then, tns run ios --emulator works fine 😄

From @rosen-vladimirov on March 4, 2016 15:35

It looks like there are some problems when deploying application to iOS Simulator related to project’s size. Some information can be found here: https://forums.developer.apple.com/thread/25221 As a workaround the following commands can be used:

tns deploy ios --emulator --justlaunch
tns run ios