1. set up your system Step 1:install node. js Step 2:install The nativescript CLI 2.1npm install-g Nativescript2.2 Verify the Nativescript CLI TNS Step 3:install iOS and Android requirements3.1 Window3.2 MacOS3.2.1 ruby-e "$ (curl-fssl https://www.nativescript.org/setup/mac)" 3.2.2Do you haveXcode installed? (y/n)Error:xcode-select:error:tool ' xcodebuild ' requires Xcode, but active developer directory '/library/developer/ Commandlinetools ' is a command line tools instanceXcode isn't installed or not configured properly. Download, install, set it up and run this script again.Execute commands, modifylocation of the installation sudo xcode-select--switch/applications/xcode.app/contents/developer If you don't have the Xcode installed, download and install it from the App Store and run it once to complete its setup. 3.2.3Allow the script to installHomebrew?(Y) es/(N) o3.2.4Allow the script to installGoogle Chrome?(Y) es/(N) oYou have chosen don't to install Google Chrome. Some features of Nativescript may isn't work correctly if you haven ' t already installed it3.2.5Allow the script to installJava SE Development Kit 8?(Y) es/(N) o3.2.6Allow the script to installAndroid SDK?Note If you type all won ' t is prompted for subsequent installations (Y) es/(N) o/(A) ll3.2.7Allow the script to installCocoaPods?Note If you type all won ' t is prompted for subsequent installations (Y) es/(N) o/(A) ll (1) InstallCocoaPodssudo gem install cocoapods(2) SetupCocoaPodspod SetupCocoapods is a third-class library management tool under OS X and iOS3.2.8Allow the script to installpip?Note If you type all won ' t is prompted for subsequent installations (Y) es/(N) o/(A) llhttps://pypi.python.org/simple/pip/3.2.9Allow the script to installsix?Note If you type all won ' t is prompted for subsequent installations (Y) es/(N) o/(A) ll' Six ' python package3.2.10Allow the script to installxcodeproj?Note If you type all won ' t is prompted for subsequent installations (Y) es/(N) o/(A) ll (1) InstallBrew Install XcprojStep 4:verify the set upTNS Doctor2. Basics of the Nativescript command-line interface Step 1:creating AppsTNS Create HelloWorld--template tns-template-blank-ng step 2:navigate into your new app ' s folderCD HelloWorldStep 3:running Apps3.1 iOSTNS Run iOS3.2 AndroidTNS Run Android3. Nativescript Advanced Setup:macos
Create Nativescript angular project under Mac