Installing Appium
Prerequisites
- MAC operating system Sequoia 15.5
- Xcode 16.2
- Homebrew to install node
Installation Steps
Download Appium
-
Run: npm install -g appium@1.22.3
-
Run: npm install wd
-
Rename package-lock.json under /Users/<username> to package.json and then re-execute the command.
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:
- cd
#appiumNodeDirectory#
Eg:/usr/local/lib/node-modules/appium
. - Open
pacakge.json
inside appium directory. - Search for "appium-xcuitest-driver".
- Replace with "appium-xcuitest-driver": "4.35.0" (updated to 4.35.0).
- Save file and Quit
webdriveragent xcode
project if it is open. - npm install (make sure you are at appium folder)
- npm install -g appium-webdriveragent
- Now replace the folder in
/usr/local/lib/node_modules/appium/node_modules/appium-webDriverAgent/
with the newly generated
appium-WebDriverAgent
and openWebDriverAgent.xcodeproj
in Xcode project. -
Open
webdriverAgentRunner
in Xcode, compile and deploy.Note: Click on run button with option Test to deploy.