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

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| 达州市| 长兴县| 拜城县| 鄱阳县| 道孚县| 新绛县| 余姚市| 苍山县| 四平市| 内江市| 深圳市| 潜山县| 文安县| 平潭县| 石门县| 贵州省| 双柏县| 永善县| 湘潭县| 通海县| 观塘区| 东源县| 乐山市| 宜城市| 通山县| 循化| 昭觉县| 南溪县| 鄂托克旗| 宁陵县| 安西县|