Setup Appium on Mac OS for Android and iOS App Automation [2021 Update]

Steps to setup Appium with Java (OpenJDK) With Android Studio and Xcode on MAC OS Big Sur

$ chsh -s /bin/bash
$ /bin/bash -c "$(curl -fsSL"
$ brew install --cask adoptopenjdk/openjdk/adoptopenjdk8
$ java -version
$ xcode-select --install  
$ sudo xcode-select -s /Applications/
$ sudo chown -R $(whoami) /usr/local/share/man/man5 /usr/local/share/man/man7
$ sudo xcodebuild -license accept
$ brew install carthage
$ brew install node
$ node -v
$ npm -v
$ npm install -g appium
$ npm install wd
$ npm install -g appium-doctor
$ npm install -g appium@1.1x.x
$ nano .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
source ~/.bash_profile
$ nano .bash_profile
export ANDROID_HOME=/Users/kchetan/Library/Android/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/platform-tools/bin:$PATH
export PATH=$ANDROID_HOME/tools/bin:$PATH
export PATH=$ANDROID_HOME/build-tools/30.0.2:$PATH
export PATH=$ANDROID_HOME/build-tools/30.0.2/bin:$PATH
source ~/.bash_profile
$ npm i -g webpack
$ brew install libimobiledevice
$ npm install -g ios-deploy
$ brew install cmake
$ npm install -g opencv4nodejs
$ brew install wix/brew/applesimutils
$ brew install ios-webkit-debug-proxy
$ brew install osxfuse
$ brew install ifuse
$ npm i -g mjpeg-consumer
$ brew install ffmpeg
$ brew install lyft/formulae/set-simulator-location
$ brew tap facebook/fb
$ brew install idb-companion
$ pip3.6 install fb-idb
nano .bash_profileexport PATH=$ANDROID_HOME/bundle-tool:$PATHsource .bash_profile

Verify if you see the following message after running the Appium doctor command.

$ appium

Cheers 🍻 🥂 🍺

Automation Test Engineer by Profession, Traveller by the Weekend