Before executing the script make sure Xcode is installed from Apple app store. Also make sure Android Studio and Java is installed . All other dependencies including JAVA_HOME and ANDROID_HOME will be set by the script itself. I am assuming that git is already installed in your machine. If not Please install it.
How to use?
Step-1: git clone git@github.com:kishor32/appium_installation.git .
Step -2 : cd appium_installation .
Step -3: chmod +x install_appium.sh .
Step -4 : ./install_appium.sh .
Happy Mobile app automation .