Anil
Anil

Reputation: 374

NativeScript Install, Build, Deploy and Run performance analysis

These are the steps required to run NativeScript App on simulator/Device

  1. $tns install
  2. $tns platform add android
  3. $tns build android
  4. $tns run android --emulator

Steps 1-3 are one time only, but on my machine it takes about 15-30 minutes. and step 4 also take 10-20 minute each time( each time I run the app it should be less).

I have

Does anybody else facing same issues/probles, i have already reinstalled windows 7. or this is $tns command issue. $Ionic running ok.

Upvotes: 1

Views: 605

Answers (1)

Nick Iliev
Nick Iliev

Reputation: 9670

Your timings are scary! Even on my dummy Celeron 1000M with 4G RAM I am running a fresh app within seconds. I guess that you either have some environment problems or network related problems (which are maybe causing your dependencies from npm to halt!?)

Btw tns run android will prepare, build, deploy and run your app (even with no platforms added before that)

You can try the following

tns create myApp
tns run android --log trace

And look what is causing the delay.

Also, are you using AVD or Genymotion for emulating? make sure they are started before running g your tns commands and leave them open to avoid the initial start. AVD is often slow when executed and somites are timing out.Check out some information about the android emulator here

Upvotes: 2

Related Questions