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)
Still present in 2.5. Creating simple ng app
tns create DemoApp --ng
andtns 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.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.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 withService exited due to signal: Killed: 9
error. Buttns 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 noticedpackage.json
was changed like this when I added platforms ios/android.Maybe,
tns-core-modules
’s version was mismatch? I upgradedtns-core-modules
according to this guide upgrade-instructions#upgrading-tns-modules.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: