Lets Perform Appium Setup on Mac OS - Easy and Simple steps
Install JDK
https:/https://www.oracle.com/in/java/technologies/javase-jdk11-downloads.html
To check the java installed version
java -version
Set Environment Path
//Open Terminal
vi ~/.bash_profile
//paste below
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=${JAVA_HOME}/bin:$PATH
//Press I to Insert
:wq
(OR) - TO SET JAVA PATH
admins-MacBook-Pro:~ admin$ vim ~/.bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
//Press I to Insert
:wq
admins-MacBook-Pro:~ admin$ source ~/.bash_profile
admins-MacBook-Pro:~ admin$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home
Testing:
admins-MacBook-Pro:~ admin$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home
Install Android Studio
https://developer.android.com/studio?gclid=CjwKCAjwiLGGBhAqEiwAgq3q_lWMX0dlFAMU2BbGFzz0MNB-JvlgDFE-PUS_jVAlTvyg1Vw2vl-DfhoCsDoQAvD_BwE&gclsrc=aw.ds
Set Environment Path
vi ~/.bash_profile
//Paste below
export ANDROID_HOME=/Users/admin/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/emulator
Press I to Insert
:wq
Testing:
admins-MacBook-Pro:~ admin$ echo $ANDROID_HOME
Install Home brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Npm and node
Brew install node
Check for versions
node -v
npm -v
Install appium via npm
npm install -g appium
g for global
Install Cathrage
brew install cathrage
Install web driver
npm install wd
Install webpack
npm i -g webpack
Install Appium
https://github.com/appium/appium-desktop/releases/
check for latest version
Install the zip file for mac
Install libimobiledevice
Brew install libimobiledevice
Install XCode from App store
Open App Store
click on Develop
search for Xcode
click on GET and Install
//It will take around 1 hour to install.
Install Authorise IOS --> to support ios application
npm install -g authorize-ios
Install idevice installer
$ brew install ideviceinstaller
Install ios-webkit-debug-proxy
brew install ios-webkit-debug-proxy
install Appium Doctor
admins-MacBook-Pro:~ admin$ npm install -g appium-doctor
check appium health
admin$ appium-doctor
Comments
Post a Comment