Setup Appium on MacOS
Install Homebrew:
Install Node.js and Appium:
brew install node npm install -g appium
Install JDK:
brew install --cask adoptopenjdk
Install Android SDK:
Download and install Android Studio from the official website.
Open Android Studio and select "Configure" -> "SDK Manager".
Under the "SDK Platforms" tab, select the desired Android versions to download.
Under the "SDK Tools" tab, select "Android SDK Build-Tools" and "Android Emulator" to install.
Set environment variables:
Add the following lines to your .bash_profile or .zshrc file: export JAVA_HOME=$(/usr/libexec/java_home) export ANDROID_HOME=/Users/<your-username>/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/platform-tools
Install Appium dependencies:
npm install -g appium-doctor appium-doctor --android appium-doctor --ios
Connect a physical device or create an emulator:
For Android: Connect your Android device via USB, or create an Android emulator using Android Studio.
For iOS: Create an iOS simulator using Xcode.
Launch Appium server:
appium
Last updated