Skip to content

Instantly share code, notes, and snippets.

@maggiesavovska
Created May 31, 2017 20:29
Show Gist options
  • Save maggiesavovska/d2d47345c92fdf70ed4ec10ebb34c170 to your computer and use it in GitHub Desktop.
Save maggiesavovska/d2d47345c92fdf70ed4ec10ebb34c170 to your computer and use it in GitHub Desktop.
Setting Up Appium on Mac
  1. Set up for Appium:

  2. Set up for Android:

    • Reference:

    • Download, install and launch Android Studio

    • click on "configure" ==> "SDK Manager" ==> "Android SDK"

    • Make sure following are installed (under "SDK Tools"):

      • Android SDK Tools
      • Android SDK Platform-tools"
      • Android SDK Build-tools (highest version)
      • Android Support Repository/Library
      • Google Repository
      • Intex x86 Emulator Accelerator (HAXM Installer)
    • Under the SDK platforms section make sure the correct platform version is installed (should correspond to the android settings in appium)

    • Note the path to SDK from this sdk manager screen.

    • Add ANDROID_HOME environment variable with path to sdk and add that to your path

    • nano ~/.bash_profile

    • export ANDROID_HOME={YOUR_PATH}

    • Add to your current path variable: export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

    • ctrl + o, enter, ctrl + x

    • source ~/.bash_profile

    • type ```adb devices`` in the command line to check if ANDROID_HOME environment variable set correctly NOTE: If "adb" command is not found then you need to check if the path to Android sdk platform-tools is in your path.

  3. Connect iPhone:

  4. Use correct desired capabilities: https://appium.io/slate/en/master/?ruby#appium-server-capabilities

@MicahLC
Copy link

MicahLC commented Jul 16, 2018

Hey, just wanted to say thanks for putting this together! I found it while searching for how to setup appium on OS X, and it REALLY came in handy.

@BShivShankar
Copy link

Appium Installation full setup on Mac for real device iOS automation (GUI & Command line tools), follow this link for without errors, might be helpful for others

https://techsouljours.blogspot.com/2018/08/appium-installation-full-setup-on-mac.html

@geetalisahoo
Copy link

When I am trying to do sudo npm install -g appium@1.6.2 --no-shrinkwrap I am getting error in mac os mojave

WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/appium-adb-c3aa80d3/lib/tools'
npm ERR! path /usr/local/lib/node_modules/appium/node_modules/commoner/node_modules/esprima/bin/esparse.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/appium/node_modules/commoner/node_modules/esprima/bin/esparse.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

Do u have any idea how to resolve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment