官术网_书友最值得收藏!

Getting started

We are going to assume that you have NativeScript installed properly on your computer. If you do not, please follow the install instructions at https://nativescript.org. Once installed, we need to create our app framework using a shell prompt:

tns create TNSStudio --ng

The tns stands for Telerik NativeScript. It is the primary command-line user interface (CLI) tool you will use to create, build, deploy, and test any NativeScript app.

This command will create a new folder called TNSStudio. Inside is your primary project folder including everything required to build an app. It will contain everything relating to this project. After the project folder has been created, you need to do one more thing to have a fully runnable app. That's, adds the runtimes for Android and/or iOS:

cd TNSStudio
tns platform add ios
tns platform add android

If you are on a Macintosh, you can build for both iOS and Android. If you are running on a Linux or Windows device, Android is the only platform you can compile for on your local machine.

主站蜘蛛池模板: 滨海县| 饶阳县| 沭阳县| 石嘴山市| 无棣县| 柳州市| 上虞市| 区。| 汽车| 墨竹工卡县| 衡阳县| 徐水县| 城市| 凌源市| 万州区| 诸暨市| 绵竹市| 威宁| 浮山县| 阜城县| 南昌县| 滦平县| 阿坝| 女性| 平凉市| 合作市| 霍林郭勒市| 郁南县| 安平县| 河北区| 瑞金市| 波密县| SHOW| 巩留县| 屏东县| 阿图什市| 田林县| 凌云县| 南乐县| 浦江县| 肥东县|