Installing NativeScript requires several steps. For developing apps for Android, you have to install Java Development Kit (JDK) and the Android SDK. Android apps can be built on Windows, Linux, and Mac. Apps for iOS can only be built on a Mac. You need to install XCode to build these apps.
You can find more details on how to install the Android SDK at https://docs.nativescript.org/start/quick-setup.
After installing the Android SDK or XCode, you can install NativeScript using npm
:
npm install nativescript -g
You can see whether your system is configured correctly by running the following command:
tns doctor
If you only want to develop apps for iOS, you can ignore the errors on Android and vice versa.
We can test most parts of the app in a simulator that is included in the SDK or XCode. Scanning a QR code only works on a device.