Install:
npm i -g nativescript
Create:
tns create <app_name> --ng
Run:
tns emulate ios
List all emulators:
xcrun simctl list
Run a different emulator:
tns emulate ios --device "iPad Air 2"
Livesync:
Run with emulator:
tns livesync ios --emulator --watch
If you omit device 'ios', it will run both Android and ios emulator at the same time, but you need to install Android emulatior first on your mac.
Run with device that connected:
tns livesync ios --watch
本文介绍如何使用NativeScript创建并运行跨平台的移动应用项目。包括安装Node.js和NativeScript CLI,通过CLI创建新的Angular项目,运行iOS模拟器,列出所有可用的模拟器,指定特定设备进行运行以及实时同步代码变更等功能。
3251

被折叠的 条评论
为什么被折叠?



