tns build <platform> 

The next command you will need to be aware of is tns build <platform>; this command fully builds a new app from scratch.  Now, the primary use for this command is when you want to build a debug or release version of the app you are going to give to somebody else to test or to upload it to one of the stores. However, it can also be used to force a fully clean build of the application, if the tns run version of your app is in a weird state--this will do a full rebuild. If you don't include the --release flag, the build will be the default debug build.  

On iOS, you will use --for-device, which will make the app compile for a real device rather than an emulator. Remember that you need to have signing keys from Apple to ...

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.