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

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.

主站蜘蛛池模板: 大名县| 陆河县| 凯里市| 诸城市| 肇源县| 塘沽区| 静宁县| 舟山市| 新乐市| 梅州市| 尚义县| 伊宁市| 合肥市| 泸水县| 宝应县| 民乐县| 曲沃县| 五华县| 秦安县| 扎赉特旗| 常宁市| 和政县| 隆化县| 涿鹿县| 喀喇沁旗| 德安县| 宣汉县| 芜湖县| 乐昌市| 宜君县| 太保市| 游戏| 金山区| 南雄市| 婺源县| 绩溪县| 屯留县| 张掖市| 那曲县| 靖远县| 泾源县|