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

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.

主站蜘蛛池模板: 西青区| 青田县| 泗水县| 政和县| 襄汾县| 深泽县| 新田县| 连云港市| 东辽县| 武宣县| 嘉定区| 正宁县| 安图县| 错那县| 辽阳市| 剑阁县| 禄丰县| 石家庄市| 珠海市| 镇远县| 奇台县| 克东县| 原阳县| 永川市| 天峻县| 手游| 东港市| 晋城| 石河子市| 炉霍县| 沾化县| 厦门市| 新余市| 清徐县| 合阳县| 九台市| 榆林市| 宣城市| 会宁县| 平度市| 太白县|