Make sure you are at a terminal shell and then type:
nativescript create crossCommunicator
This will create
crossCommunicatoras a subdirectory of the current directory you are running the
nativescriptcommand in. This new project directory will have all the required files for developing your project.
Next, you will need to switch to that new
crossCommunicatordirectory that it created for you by typing:
nativescript platform add android
nativescript platform add ios
To add each of the target environment(s), you will be compiling your app from this machine:
If everything worked properly, you should see something like the preceding image results.
nativescript platform add ios command as I need to add the iOS target on the Macintosh.
First time requirements
The very first time you create a project or add a platform, you do need an active Internet connection so the
nativescript tool can download the current version of the runtime and platform libraries that it uses. In any future executions, it will first try to download the newest version, but if it fails, it will then use the currently cached version.
nativescript run android --emulator
nativescript run ios –-emulator
NativeScript will then copy your application to the emulator, automatically start it up, and then you should see your first application running on the emulator screen like this: