Installing Appium

Prerequisites
  • MAC operating system Sequoia 15.5
  • Xcode 16.2
  • Homebrew to install node

Installation Steps

Download Appium

  1. Run: npm install -g appium@1.22.3

  2. Run: npm install wd

  3. Rename package-lock.json under /Users/<username> to package.json and then re-execute the command.

  4. Execute the below command in the terminal to point the required Xcode for execution.

    sudo xcode-select -switch /Applications/Xcode.app

Following are the steps for workaround to support automation on iOS 16.0 onwards:

  1. cd #appiumNodeDirectory# Eg: /usr/local/lib/node-modules/appium.
  2. Open pacakge.json inside appium directory.
  3. Search for "appium-xcuitest-driver".
  4. Replace with "appium-xcuitest-driver": "4.35.0" (updated to 4.35.0).
  5. Save file and Quit webdriveragent xcode project if it is open.
  6. npm install (make sure you are at appium folder)
  7. npm install -g appium-webdriveragent
  8. Now replace the folder in /usr/local/lib/node_modules/appium/node_modules/appium-webDriverAgent/ with the newly generated appium-WebDriverAgent and open WebDriverAgent.xcodeproj in Xcode project.
  9. Open webdriverAgentRunner in Xcode, compile and deploy.

    Note: Click on run button with option Test to deploy.