네이티브 스크립트 설치 방법 MAC
# The NativeScript CLI is built on Node.js, and as such you need to have Node.js installed to use NativeScript
install the latest “LTS” (long-term support)# sudo npm install -g nativescript (If you’re on macOS and receive an EACCES error)
npm install -g nativescript(sudo) ruby -e "$(curl -fsSL https://www.nativescript.org/setup/mac)"# Install Homebrew to simplify the installation process. (홈브류 없을 경우)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# 홈브류 있는경우
brew update
brew install node@6tns doctorxcode 최신 버전 설치 or Update
sudo gem install xcodeprojhttps://developer.apple.com/download/more/
sudo gem install cocoapodsvi ~/.bash_profile or vi ~/.zshrc
export JAVA_HOME=$(/usr/libexec/java_home)
#8버전 사용
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)https://developer.android.com/studio/index.html
https://docs.nativescript.org/tooling/android-virtual-devices
https://developer.android.com/studio/run/managing-avds.html?hl=ko
(안드로이드 스튜디오 설치 후에도 설치가 되지 않았다고 나올시)
brew cask install android-sdk
#delete
brew cask uninstall android-sdk# NativeScript Guide
export ANDROID_HOME=/usr/local/share/android-sdk
# run error 로 인한 변경
export ANDROID_HOME=/Users/{userName}/Library/Android/sdk
export ANDROID_SDK_ROOT=$ANDROID_HOME$ANDROID_HOME/tools/bin/sdkmanager "tools" "platform-tools" "platforms;android-25" "build-tools;25.0.2" "extras;android;m2repository" "extras;google;m2repository"tns doctor#ios
tns run ios
#android
tns run android
# Manually start Android emulator, tns run android will reuse running instance and it will not search for avd images
# 설치 되었으나, 에뮬레이터 실행 안됬을경우 사용하여 해결
tns run android --log trace