Girish KR

Download file `jdk-14.0.2_osx-x64_bin.dmg` and install

Find type of shell

echo $SHELL

Find JAVA location & version

/usr/libexec/java_home

open env file

vi ~/.zshrc

and to file

# env
if [[ -e /usr/libexec/java_home ]]; then
export JAVA_HOME=`/usr/libexec/java_home`
fi
export PATH=$JAVA_HOME/bin:$PATH

reload terminal or

source ~/.zshrc

Android Install

Go to settings preferences, search for “sdk” find location and set

export ANDROID_SDK_ROOT=~/Library/Android/sdk

set another

export PATH=${PATH}:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools

--

--

nvm use 12npm install -g cordova
npm install -g @vue/cli
vue add cordova

Select default folder src-cordova installed in root directory of vue project

select iOS,android, browser and other options when asked

To run in browser

npm run cordova-serve-browser

To run ios

make sure xcode is installed

cd src-cordova
cordova platform add iOS
cd ..
npm run Cordova-build-ios

After the build is complete, open project in xcode and emulate

--

--